Exemple #1
0
 public void Should_get_methods_of_struct()
 {
     var result = new Fields(typeof(MyStructWithMethods2), TypeOfFIelds.Methods).GetNames().ToArray();
     Assert.Equal(new[] { "A", "B", "C" }, result);
 }
Exemple #2
0
 public void Should_get_properties_of_struct()
 {
     var result = new Fields(typeof(MyStructWithProperties1), TypeOfFIelds.Properties).GetNames().ToArray();
     Assert.Equal(new[] { "A", "B", "C" }, result);
 }
Exemple #3
0
 public void Should_get_fields_of_class()
 {
     var result = new Fields(typeof(MyClassWithFIelds0), TypeOfFIelds.Fields).GetNames().ToArray();
     Assert.Equal(new[] { "A", "B", "C" }, result);
 }