public void ParseEmpty() { var method = new An8Method(); method.Parse( @" "); }
public void ParseOther() { var method = new An8Method(); method.Parse( @" other { } "); }
public void ParseNull() { var method = new An8Method(); method.Parse( @" abc ""def"" "); Assert.Equal("abc", method.Kind); Assert.Equal("def", method.Name); }
public void ParseParameter() { var method = new An8Method(); method.Parse( @" parameter { ""abc"" 2.0 } "); Assert.Equal(1, method.Parameters.Count); Assert.Equal("abc", method.Parameters.ElementAt(0).Key); Assert.Equal(2.0f, method.Parameters.ElementAt(0).Value); }