예제 #1
0
        public void Test_AddTags_DoesNotDoAnything_WhenPassedNull()
        {
            Relationship relationship = _softwareSystem1.Uses(_softwareSystem2, "uses");

            relationship.AddTags((string)null);
            Assert.Equal("Relationship,Synchronous", relationship.Tags);

            relationship.AddTags(null, null, null);
            Assert.Equal("Relationship,Synchronous", relationship.Tags);
        }
예제 #2
0
        public void Test_AddTags_AddsTags_WhenPassedSomeTags()
        {
            Relationship relationship = _softwareSystem1.Uses(_softwareSystem2, "uses");

            relationship.AddTags(null, "tag1", null, "tag2");
            Assert.Equal("Relationship,Synchronous,tag1,tag2", relationship.Tags);
        }
예제 #3
0
        public void Test_Tags_ReturnsTheListOfTags_WhenThereAreSomeTags()
        {
            Relationship relationship = _softwareSystem1.Uses(_softwareSystem2, "uses");

            relationship.AddTags("tag1", "tag2", "tag3");
            Assert.Equal("Relationship,Synchronous,tag1,tag2,tag3", relationship.Tags);
        }