public void EmptyForm_GetContentType() { //Arrange var target = new PgStageDetailsForm(); //Act var result = target.GetContentType(); //Assert result.Should().BeEmpty(); }
public void CostType_Trafficking_GetContentType() { //Arrange var target = new PgStageDetailsForm { CostType = CostType.Trafficking.ToString() }; //Act var result = target.GetContentType(); //Assert result.Should().BeEmpty(); }
public void CostType_Buyout_GetContentType() { //Arrange string expectedContentType = string.Empty; var target = new PgStageDetailsForm { CostType = CostType.Buyout.ToString() }; //Act var result = target.GetContentType(); //Assert result.Should().NotBeNull(); result.Should().Be(expectedContentType); }
public void CostType_Production_GetContentType() { //Arrange const string expectedContentType = "Abc"; var target = new PgStageDetailsForm { CostType = CostType.Production.ToString(), ContentType = new core.Builders.DictionaryValue { Key = expectedContentType, Value = "A Value" } }; //Act var result = target.GetContentType(); //Assert result.Should().NotBeNull(); result.Should().Be(expectedContentType); }