Beispiel #1
0
        public void Definition_text_should_be_empty()
        {
            var converter = new DefinitionSearchTextConverter();
            var result    = converter.Convert(null, null, null, null);

            result.ToString().Should().BeNullOrWhiteSpace();
        }
Beispiel #2
0
        public void Definition_text_should_not_be_empty()
        {
            var converter = new DefinitionSearchTextConverter();
            var result    = converter.Convert(new Definition()
            {
                Id = "test", File = "test.txt", ModName = "test"
            }, null, null, null);

            result.ToString().Should().NotBeNullOrWhiteSpace();
        }