public void WarewolfAtomIterator_GetLength_ShouldBeEqualToMaxVal_AreEqual_ExpectTrue() { //-------------------------Arrange-------------------------- IEnumerable <DataStorage.WarewolfAtom> listResult = new List <DataStorage.WarewolfAtom>(); var warewolfAtomIterator = new WarewolfAtomIterator(listResult); //-------------------------Act------------------------------ var length = warewolfAtomIterator.GetLength(); //-------------------------Assert--------------------------- Assert.AreEqual(0, length); }
public void WarewolfAtomIterator_GetLength_ShouldBeEqualToMaxVal() { IEnumerable <DataStorage.WarewolfAtom> listResult = new List <DataStorage.WarewolfAtom>(); var warewolfAtomIterator = new WarewolfAtomIterator(listResult); Assert.IsNotNull(warewolfAtomIterator); var privateObj = new PrivateObject(warewolfAtomIterator); var maxVal = (int)privateObj.GetField("_maxValue"); Assert.IsNotNull(maxVal); var length = warewolfAtomIterator.GetLength(); Assert.AreEqual(maxVal, length); }