コード例 #1
0
        public void CanNotParse(string inputLanguage)
        {
            var adapter = new LanguageTypeAdapter();
            var result  = adapter.Parse(inputLanguage);

            Assert.Null(result);
        }
コード例 #2
0
        public void CanParse(string inputLanguage, string expectedId, string firstLine)
        {
            var adapter = new LanguageTypeAdapter();
            var result  = adapter.Parse(inputLanguage, firstLine);

            Assert.Equal(expectedId, result.Id);
        }
 public void CanNotParse(string inputLanguage) {
     var adapter = new LanguageTypeAdapter();
     var result = adapter.Parse(inputLanguage);
     Assert.Null(result);
 }
 public void CanParse(string inputLanguage, string expectedId, string firstLine) {
     var adapter = new LanguageTypeAdapter();
     var result = adapter.Parse(inputLanguage, firstLine);
     Assert.Equal(expectedId, result.Id);
 }