public void TestItReturnsElementsInOrder() { OutputGroup group1 = new("1"); OutputGroup group2 = new("2"); outputGroups.AddGroupWithFiles(group1, new List <string> { "foo.txt" }); outputGroups.AddGroupWithFiles(group2, new List <string> { "goo.txt" }); Freetext first = FreetextFactory.Make(DefinitionFactory.Make("foo.txt")); Freetext second = FreetextFactory.Make(DefinitionFactory.Make("goo.txt")); Freetext third = FreetextFactory.Make(DefinitionFactory.Make("foo.txt")); sectorElements.Add(first); sectorElements.Add(second); sectorElements.Add(third); IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>() { first, third, second }; AssertCollectedItems(expected); }
public void TestItAddsFreetext() { Freetext freetext = FreetextFactory.Make(); collection.Add(freetext); Assert.Equal(freetext, collection.Freetext[0]); }
public void TestItAddsFreetextData() { RunParserOnLines(new List <string>(new[] { "N054.28.46.319:W006.15.33.933:Title:Text ;comment" })); Freetext result = sectorElementCollection.Freetext[0]; Assert.Equal(new Coordinate("N054.28.46.319", "W006.15.33.933"), result.Coordinate); Assert.Equal("Title", result.Title); Assert.Equal("Text", result.Text); AssertExpectedMetadata(result); }
public FreetextTest() { this.model = new Freetext( "Freetext", "Some text", new Coordinate("abc", "def"), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ); }