public void ToString_Constructor_ReturnsExpectedString(TestStatus status, string label, string expected) { ResultState resultState = new ResultState(status, label); Assert.AreEqual(expected, resultState.ToString()); }
public void Site_ConstructorWithTwoArguments_ReturnsTest(string label) { ResultState resultState = new ResultState(TestStatus.Failed, label); Assert.AreEqual(FailureSite.Test, resultState.Site); }
public void Site_ConstructorWithThreeArguments_ReturnsSite(string label, FailureSite site) { ResultState resultState = new ResultState(TestStatus.Failed, label, site); Assert.AreEqual(site, resultState.Site); }
public void Site_ConstructorWithOneArguments_ReturnsTest() { ResultState resultState = new ResultState(TestStatus.Failed); Assert.AreEqual(FailureSite.Test, resultState.Site); }
public void Label_ConstructorWithTwoArgumentsLabelArgumentIsNull_ReturnsEmptyString() { ResultState resultState = new ResultState(TestStatus.Failed, null); Assert.AreEqual(string.Empty, resultState.Label); }
public void Label_ConstructorWithTwoArguments_ReturnsConstructorArgumentLabel(string label) { ResultState resultState = new ResultState(TestStatus.Failed, label); Assert.AreEqual(label, resultState.Label); }
public void Status_ConstructorWithTwoArguments_ReturnsConstructorArgumentStatus(TestStatus status) { ResultState resultState = new ResultState(status, string.Empty); Assert.AreEqual(status, resultState.Status); }
public void Label_ConstructorWithOneArguments_ReturnsStringEmpty() { ResultState resultState = new ResultState(TestStatus.Failed); Assert.AreEqual(string.Empty, resultState.Label); }