예제 #1
0
        public void TestGetTagInvalidEnumValue()
        {
            ScriptType type = (ScriptType)99;
            Action     a    = () => ScriptConverter.GetTag(type);

            a.Should().Throw <InvalidOperationException>().WithMessage("Unable to find a tag for*");
        }
예제 #2
0
 public void TestGetTagSub()
 {
     ScriptConverter.GetTag(ScriptType.Sub).Should().Be("sub");
 }
예제 #3
0
 public void TestGetTagSuper()
 {
     ScriptConverter.GetTag(ScriptType.Super).Should().Be("sup");
 }