Exemplo n.º 1
0
        public void InitializationTest(int id, string text, bool isChecked)
        {
            Point point1 = new Point(id, text, isChecked);

            ServerRealization.Database.Context.Point dbPoint = new ServerRealization.Database.Context.Point(id, new ServerRealization.Database.Context.Collection(), text, isChecked);
            Point point2 = new Point(dbPoint.ToString());

            Assert.AreEqual(id, point1.Id);
            Assert.AreEqual(id, point2.Id);
            Assert.AreEqual(text, point1.Text);
            Assert.AreEqual(text, point2.Text);
            Assert.AreEqual(isChecked, point1.IsChecked);
            Assert.AreEqual(isChecked, point2.IsChecked);
        }