예제 #1
0
        public void TestProperties()
        {
            var project = new MockPeterProject(null);

            project.PropertyChanged += this.OnProjectPropertyChanged;

            project.SetName("TestName");
            Assert.AreEqual("TestName", project.Text);
            Assert.AreEqual("ProjectName", this.m_PropertyChange);

            project.IsCurrentProject = true;
            Assert.IsTrue(project.IsCurrentProject);
            Assert.AreEqual("IsCurrentProject", this.m_PropertyChange);
            this.m_PropertyChange = string.Empty;
        }
예제 #2
0
        public void TestConstructor()
        {
            var project = new MockPeterProject(null);

            Assert.IsNotNull(project.Children);
        }