Exemplo n.º 1
0
        public void TestProjectModelToStringWithNullName()
        {
            var p = new ProjectModel();
            p.Name = null;

            Assert.AreEqual(p.ToString(), "BrockSolutions.Ticker.Core.Models.Projects.ProjectModel"); //Default representation from base object
        }
Exemplo n.º 2
0
        public void TestProjectModelToStringWithName()
        {
            var name = "Test Name";
            var p = new ProjectModel() { Name = name };

            Assert.AreEqual(p.ToString(), name);
        }