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; }
public void TestConstructor() { var project = new MockPeterProject(null); Assert.IsNotNull(project.Children); }