コード例 #1
0
        public void SiteInfo_ValidateObject_DefaultInitialization()
        {
            SiteInfo si = new SiteInfo();

            bool result   = si.IsValid();
            bool expected = false;

            Assert.AreEqual(expected, result);
        }
コード例 #2
0
        public void SiteInfo_ValidateObject_GoodData()
        {
            SiteInfo si = new SiteInfo();

            si.Author = "kdmurray";
            si.Title  = "This is the Title";

            bool result   = si.IsValid();
            bool expected = true;

            Assert.AreEqual(expected, result);
        }