Example #1
0
 private static void AssertContainerContentsEqualTo(ReagentContainer container, ReagentMix expected)
 {
     container.Clean();
     expected.Clean();
     Assert.AreEqual(expected.Count(), container.Count());
     foreach (var pair in expected)
     {
         var val = container[pair.Key];
         Assert.IsTrue(val != null);
         Assert.AreEqual(pair.Value, val, 0.00000001, $"Wrong amount of {pair.Key}.");
     }
 }