public void WhenProjectHasSourceUrl_Returntrue() { Projects prj = new Projects(); bool expected = true; bool actual = prj.GetVisibilityFromSourceUrl(new Project() {SourceUrl="demourl.aspx" }); Assert.AreEqual(expected, actual, "GetVisibilityFromSourceUrl returned wrong value"); }
public void WhenProjectHasNoSourceUrl_ReturnFalse() { Projects prj = new Projects(); bool expected = false; bool actual =prj.GetVisibilityFromSourceUrl(new Project() { Name = "test project", Description = "test desc", Url ="some url" }); Assert.AreEqual(expected, actual, "GetVisibilityFromSourceUrl returned wrong value"); }