/// <summary> /// Emulate Nunits Assert.That /// </summary> public void That(string actual, Expected expected) { AreEqual(expected.ExpectedValue, actual); }
/// <summary> /// Emulate Nunits Assert.That /// </summary> public void That(string actual, Expected expected) { switch (expected.Kind) { case Expected.ComparisonKind.AreEquals: AreEqual(expected.ExpectedValue, actual); break; case Expected.ComparisonKind.AreAlike: AreAlike(expected.ExpectedValue, actual); break; default: throw new ArgumentOutOfRangeException(); } }