Exemplo n.º 1
0
 public void Contains_ByID_Success()
 {
     Assert.IsTrue(StorageWithID.Contains(nameof(StorageWithID.Alpha)));
     Assert.IsTrue(StorageWithID.Contains(nameof(StorageWithID.Bravo)));
     Assert.IsTrue(StorageWithID.Contains(nameof(StorageWithID.Charlie)));
     Assert.IsFalse(StorageWithID.Contains(nameof(StorageWithID)));
 }
Exemplo n.º 2
0
 public void Get_ByID_Success()
 {
     Assert.AreEqual(StorageWithID.Alpha, StorageWithID.Get(nameof(StorageWithID.Alpha)));
     Assert.AreEqual(StorageWithID.Bravo, StorageWithID.Get(nameof(StorageWithID.Bravo)));
     Assert.AreEqual(StorageWithID.Charlie, StorageWithID.Get(nameof(StorageWithID.Charlie)));
 }