コード例 #1
0
 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");
 }
コード例 #2
0
 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");
 }