8 references to CannotAddMemberToInterface
Microsoft.DotNet.ApiCompatibility (1)
Rules\CannotAddMemberToInterface.cs (1)
42
DiagnosticIds.
CannotAddMemberToInterface
,
Microsoft.DotNet.ApiCompatibility.Tests (7)
CompatDifferenceTests.cs (1)
45
CompatDifference differentDiagId = CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Removed, "T:Foo");
Rules\CannotAddMemberToInterfaceTests.cs (6)
51
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Added, "M:CompatTests.IFoo.MyMethod"),
52
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Added, "P:CompatTests.IFoo.MyPropertyWithoutDefaultImplementation"),
53
CompatDifference.CreateWithDefaultMetadata(DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Added, "E:CompatTests.IFoo.MyEventWithoutImplementation"),
109
Assert.NotEqual(DiagnosticIds.
CannotAddMemberToInterface
, difference.DiagnosticId);
191
new CompatDifference(left.MetadataInformation, right[1].MetadataInformation, DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Added, "E:CompatTests.IFoo.MyOtherEvent"),
192
new CompatDifference(left.MetadataInformation, right[2].MetadataInformation, DiagnosticIds.
CannotAddMemberToInterface
, string.Empty, DifferenceType.Added, "M:CompatTests.IFoo.MyOtherMethod"),