public void IsChecksumNotNull() { //Arrange InventoryChecksum inventoryChecksum = new InventoryChecksum(); //Act String[] boxIDs = new string[7] { "abcdef", "bababc", "abbcde", "abcccd", "aabcdd", "abcdee", "ababab" }; var ChecksumResponse = inventoryChecksum.Checksum(boxIDs.ToList()); //Assert Assert.IsNotNull(ChecksumResponse); }
public void IsChecksumEqualsTo12() { //Arrange InventoryChecksum inventoryChecksum = new InventoryChecksum(); //Act String[] boxIDs = new string[7] { "abcdef", "bababc", "abbcde", "abcccd", "aabcdd", "abcdee", "ababab" }; //var idRep = inventoryChecksum.Checksum(boxIDs.ToList()); int checksum = inventoryChecksum.Checksum(boxIDs.ToList()); //Assert Assert.AreEqual(12, checksum); }
public void IsChecksumEqualsTo16() { //Arrange InventoryChecksum inventoryChecksum = new InventoryChecksum(); //Act String[] boxIDs = new string[6] { "aaabbb", "abbccc", "abbbcc", "abcdee", "abccdd", "abcccd" }; var idRep = inventoryChecksum.Checksum(boxIDs); int checksum = idRep.idWithTwo * idRep.idWithThree; //Assert Assert.AreEqual(16, checksum); }
public void IsChecksumEqualsTo4() { //Arrange InventoryChecksum inventoryChecksum = new InventoryChecksum(); //Act String[] boxIDs = new string[4] { "abcccd", "aabcdd", "abcdee", "ababab" }; var checksum = inventoryChecksum.Checksum(boxIDs.ToList()); //int checksum = idRep.idWithTwo * idRep.idWithThree; //Assert Assert.AreEqual(4, checksum); }