public void Initialize_should_bind_Name_property_automatically_in_test_case(PHasNameProperty s) { var method = nameof(Initialize_should_bind_Name_property_automatically_in_test_case); var type = GetType(); var index = TestContext.CurrentTest.Position; Assert.Equal($"{type}.{method} PropertyWithNames[{index}] #{index} ({{ Name = \"expected\" }})", TestContext.CurrentTest.DisplayName); }
public void Initialize_should_bind_Name_property_automatically_in_test_case_fixtures(PHasNameProperty s) { var method = nameof(Initialize_should_bind_Name_property_automatically_in_test_case_fixtures); var type = GetType(); Assert.Equal($"{type}.{method} #0 ({{ Name = \"expected\" }})", TestContext.CurrentTest.DisplayName); }