Exemplo n.º 1
0
        public void GIVEN_A_Simple_Single_Entity_Diagram_WHEN_Rendered_With_Defaults_THEN_Diagram_Has_One_Class_With_Members()
        {
            var reader = ClassDiagramReader.Read(new DefaultBehaviorDiagram());

            Assert.That(reader.Classes.Length, Is.EqualTo(4));
            Assert.That(reader.Classes[0].Name, Is.EqualTo("AggregationEntity"));
        }
Exemplo n.º 2
0
        public void GIVEN_A_Simple_Single_Entity_Diagram_WHEN_Rendered_With_Hidden_Fields_THEN_Diagram_Has_One_Class_With_Members_Selectively_Hidden()
        {
            var reader = ClassDiagramReader.Read(new HiddenFieldBarDiagram());

            Assert.That(reader.Classes.Length, Is.EqualTo(1));
            Assert.That(reader.Classes[0].Name, Is.EqualTo("SimpleEntity"));
            Assert.That(reader.Classes[0].Members.Length, Is.EqualTo(2));
            Assert.That(reader.Classes[0].Members[0].Name, Is.EqualTo("Foo"));
            Assert.That(reader.Classes[0].Members[1].Name, Is.EqualTo("Baz"));
        }
Exemplo n.º 3
0
        public void GIVEN_A_Simple_Single_Entity_Diagram_WHEN_Rendered_With_Defaults_THEN_Diagram_Has_One_Class_With_Members()
        {
            var reader = ClassDiagramReader.Read(new DefaultBehaviorDiagram());

            Assert.That(reader.Classes.Length, Is.EqualTo(1));
            Assert.That(reader.Classes[0].Name, Is.EqualTo("SimpleEntity"));
            Assert.That(reader.Classes[0].Members.Length, Is.EqualTo(3));
            Assert.That(reader.Classes[0].Members[0].Name, Is.EqualTo("Foo"));
            Assert.That(reader.Classes[0].Members[1].Name, Is.EqualTo("Bar"));
            Assert.That(reader.Classes[0].Members[2].Name, Is.EqualTo("Baz"));
        }
Exemplo n.º 4
0
        public void TestIt()
        {
            var reader = ClassDiagramReader.Read(new CustomerProcessContractsClassDiagram());

            Assert.That(reader.Classes.Length, Is.GreaterThan(0));
        }