Index: Core/Components/src/Core.Components.Gis/WmtsConnectionInfo.cs =================================================================== diff -u -r9e9976818f1b446948c3bf815cafe2e023f98ac1 -r39088818bbca956e45fc5192761a7b0f800cc83e --- Core/Components/src/Core.Components.Gis/WmtsConnectionInfo.cs (.../WmtsConnectionInfo.cs) (revision 9e9976818f1b446948c3bf815cafe2e023f98ac1) +++ Core/Components/src/Core.Components.Gis/WmtsConnectionInfo.cs (.../WmtsConnectionInfo.cs) (revision 39088818bbca956e45fc5192761a7b0f800cc83e) @@ -26,7 +26,7 @@ /// /// This class defines properties for a WMTS connection. /// - public class WmtsConnectionInfo : IEquatable + public sealed class WmtsConnectionInfo : IEquatable { /// /// Creates a new instance of . Index: Core/Components/test/Core.Components.Gis.Test/WmtsConnectionInfoTest.cs =================================================================== diff -u -r9e9976818f1b446948c3bf815cafe2e023f98ac1 -r39088818bbca956e45fc5192761a7b0f800cc83e --- Core/Components/test/Core.Components.Gis.Test/WmtsConnectionInfoTest.cs (.../WmtsConnectionInfoTest.cs) (revision 9e9976818f1b446948c3bf815cafe2e023f98ac1) +++ Core/Components/test/Core.Components.Gis.Test/WmtsConnectionInfoTest.cs (.../WmtsConnectionInfoTest.cs) (revision 39088818bbca956e45fc5192761a7b0f800cc83e) @@ -33,21 +33,21 @@ public void Constructor_NameNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new WmtsConnectionInfo(null, "url"); + void Call() => new WmtsConnectionInfo(null, "url"); // Assert - string paramName = Assert.Throws(call).ParamName; + string paramName = Assert.Throws(Call).ParamName; Assert.AreEqual("name", paramName); } [Test] public void Constructor_UrlNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new WmtsConnectionInfo("name", null); + void Call() => new WmtsConnectionInfo("name", null); // Assert - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "url must have a value."); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(Call, "url must have a value."); } [Test] @@ -66,18 +66,13 @@ } [TestFixture] - private class WmtsConnectionInfoEqualsTest : EqualsTestFixture + private class WmtsConnectionInfoEqualsTest : EqualsTestFixture { protected override WmtsConnectionInfo CreateObject() { return CreateWmtsConnectionInfo(); } - protected override DerivedWmtsConnectionInfo CreateDerivedObject() - { - return new DerivedWmtsConnectionInfo(CreateWmtsConnectionInfo()); - } - private static IEnumerable GetUnequalTestCases() { WmtsConnectionInfo baseConnectionInfo = CreateWmtsConnectionInfo(); @@ -92,11 +87,5 @@ return new WmtsConnectionInfo("name", "url"); } } - - private class DerivedWmtsConnectionInfo : WmtsConnectionInfo - { - public DerivedWmtsConnectionInfo(WmtsConnectionInfo connectionInfo) - : base(connectionInfo.Name, connectionInfo.Url) {} - } } } \ No newline at end of file