public void PassedOkIsOk() { LogicResultTester tester = new LogicResultTester(HttpStatusCode.OK, true); Assert.AreEqual(HttpStatusCode.OK, tester.Status); Assert.IsTrue(tester.IsOk); }
public void PassedValuesAreCorrectlyAssigned() { Fixture fixture = new Fixture(); HttpStatusCode status = fixture.Create <HttpStatusCode>(); bool shouldHaveData = fixture.Create <bool>(); LogicResultTester tester = new LogicResultTester(status, shouldHaveData); Assert.AreEqual(status, tester.Status); Assert.AreEqual(shouldHaveData, tester.ShouldHaveData); Assert.IsTrue(status == HttpStatusCode.OK || !tester.IsOk); }