public void StringEquality() { PropertyName first = "Name"; PropertyName second = "Name"; first.Should().Be(second); }
public void PropertyInfoInequality() { PropertyName first = typeof(Project).GetProperty(nameof(Project.Name)); PropertyName second = typeof(Project).GetProperty(nameof(Project.NumberOfCommits)); first.Should().NotBe(second); }
public void PropertyInfoEquality() { PropertyName first = typeof(Project).GetProperty(nameof(Project.Name)); PropertyName second = typeof(Project).GetProperty(nameof(Project.Name)); first.Should().Be(second); }
public void ExpressionEqualityWithDifferentParameters() { PropertyName first = Property <Project>(p => p.Name); PropertyName second = Property <Project>(project => project.Name); first.Should().Be(second); }
public void ExpressionEquality() { PropertyName first = Property <Project>(p => p.Name); PropertyName second = Property <Project>(p => p.Name); first.Should().Be(second); }
public void AssertFired(string propertyName) { _args.Should().NotBeNull( "we expect the event to have been fired."); _args !.PropertyName.Should().Be( propertyName, $"we expect the event to have been fired for '{propertyName}."); }