6 references to GetMemberViolationMessage
Microsoft.DotNet.ApiCompat.Core (6)
Rules\Compat\CannotAddAbstractMembers.cs (1)
28
differences.AddIncompatibleDifference(this, impl.
GetMemberViolationMessage
("Member", $"is abstract in the {Implementation}", $"is missing in the {Contract}"));
Rules\Compat\CannotMakeAbstract.cs (1)
19
differences.AddIncompatibleDifference("CannotMakeMemberAbstract", impl.
GetMemberViolationMessage
("Member", $"is abstract in the {Implementation}", $"is not abstract in the {Contract}"));
Rules\Compat\CannotMakeNonVirtual.cs (1)
35
differences.AddIncompatibleDifference("CannotMakeMemberNonVirtual", impl.
GetMemberViolationMessage
("Member", $"is non-virtual in the {Implementation}", $"is virtual in the {Contract}"));
Rules\Compat\InterfacesShouldHaveSameMembers.cs (2)
26
differences.AddIncompatibleDifference(this, contract.
GetMemberViolationMessage
($"{GetNameOfInterfaceMemberType(contract)}", $"is present in the {Contract}", $"not in the {Implementation}"));
35
differences.AddIncompatibleDifference(this, impl.
GetMemberViolationMessage
($"{GetNameOfInterfaceMemberType(impl)}", $"is present in the {Implementation}", $"not in the {Contract}"));
Rules\Compat\MembersMustExist.cs (1)
32
string incompatibleDifferenceMessage = contractMember.
GetMemberViolationMessage
("Member", $"does not exist in the {Implementation}", $"it does exist in the {Contract}");