Ejemplo n.º 1
0
 public void IfExpressionIsNull_Error()
 {
     CommonAssertions.NotNullRequired(() => ExpressionsEx.GetPropertyName <NumbNut>(null));
 }
Ejemplo n.º 2
0
 public void NodeTypeIs_MemberAccess_aka_MemberExpression_Ok()
 {
     Assert.That(ExpressionsEx.GetPropertyName <NumbNut>(nn => nn.SerendipityCollection), Is.EqualTo("SerendipityCollection"));
     Assert.That(ExpressionsEx.GetPropertyName <NumbNut>(nn => nn.Lame), Is.EqualTo("Lame"));
 }
Ejemplo n.º 3
0
 public void NodeTypeIs_Constant_Error()
 {
     CommonAssertions.PreconditionCheck(() => ExpressionsEx.GetPropertyName <NumbNut>(nn => NumbNut.Name),
                                        "does not refer to a property and is therefore not supported");
 }
Ejemplo n.º 4
0
 public void NodeTypeIs_Convert_aka_UnaryExpression_Ok()
 {
     Assert.That(ExpressionsEx.GetPropertyName <NumbNut>(nn => NumbNut.Age), Is.EqualTo("Age"));
     Assert.That(ExpressionsEx.GetPropertyName <NumbNut>(nn => NumbNut.IsMammel), Is.EqualTo("IsMammel"));
     Assert.That(ExpressionsEx.GetPropertyName <NumbNut>(nn => NumbNut.Surname), Is.EqualTo("Surname"));
 }