public void ShouldNotMatchTypeWithoutMatchingAlias() { var aliasMatcher = new AliasMatcher(new List <Type> { typeof(Foo) }); Assert.Throws <ArgumentException>(() => aliasMatcher.GetMatchedType("baz")); }
public void ShouldMatchTypeDecoratedWithAlias(string command) { var aliasMatcher = new AliasMatcher(new List <Type> { typeof(Foo) }); Assert.Equal(typeof(Foo), aliasMatcher.GetMatchedType(command)); }
public void ShouldNotMatchTypeWithoutMatchingAlias() { var aliasMatcher = new AliasMatcher(new List<Type> { typeof(Foo) }); Assert.Throws<ArgumentException>(() => aliasMatcher.GetMatchedType("baz")); }
public void ShouldMatchTypeDecoratedWithAlias(string command) { var aliasMatcher = new AliasMatcher(new List<Type> { typeof(Foo) }); Assert.Equal(typeof(Foo), aliasMatcher.GetMatchedType(command)); }