forked from Jarno458/TsRandomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItemInfoFixture.cs
41 lines (34 loc) · 1.1 KB
/
ItemInfoFixture.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using NUnit.Framework;
using Timespinner.GameAbstractions.Inventory;
using TsRandomizer.IntermediateObjects;
using TsRandomizer.Randomisation;
namespace TsRandomizer.Tests
{
[TestFixture]
class ItemInfoFixture
{
[Test]
public void Should_equal_on_identifier()
{
var a = new ItemIdentifier(EInventoryRelicType.Dash);
var b = new ItemIdentifier(EInventoryRelicType.Dash);
Assert.That(a, Is.EqualTo(b));
}
[Test]
public void Should_equal()
{
var a = new SingleItemInfo(new ItemUnlockingMap(Seed.Zero), new ItemIdentifier(EInventoryRelicType.Dash));
var b = new SingleItemInfo(new ItemUnlockingMap(Seed.Zero), new ItemIdentifier(EInventoryRelicType.Dash));
Assert.That(a, Is.EqualTo(b));
}
[Test]
public void Should_equal_across_provider()
{
var providerA = new ItemInfoProvider(SeedOptions.None, new ItemUnlockingMap(Seed.Zero));
var a = providerA.Get(EInventoryRelicType.Dash);
var providerB = new ItemInfoProvider(SeedOptions.None, new ItemUnlockingMap(Seed.Zero));
var b = providerB.Get(EInventoryRelicType.Dash);
Assert.That(a, Is.EqualTo(b));
}
}
}