public void EqTest2() { var target1 = new ConfigItem("Config1|Platform1"); Assert.Equal("Config1", target1.Configuration); Assert.Equal("Platform1", target1.Platform); var target2 = new ConfigItem(null); Assert.Null(target2.Configuration); Assert.Null(target2.ConfigurationByRule); Assert.Null(target2.Platform); Assert.Null(target2.PlatformByRule); var target3 = new ConfigItem("Config1", "Platform1"); Assert.Equal("Config1|Platform1", target3.ToString()); Assert.Equal("Config1|Platform1", target3.Format()); }
public void EqTest2() { var target1 = new ConfigItem("Config1|Platform1"); Assert.Equal("Config1", target1.Configuration); Assert.Equal("Platform1", target1.Platform); var target2 = new ConfigItem(null); Assert.Null(target2.Configuration); Assert.Null(target2.ConfigurationByRule); Assert.Null(target2.Platform); Assert.Null(target2.PlatformByRule); var target3 = new ConfigItem("Config1", "Platform1"); Assert.Equal("Config1|Platform1", target3.ToString()); #pragma warning disable CS0618 // Type or member is obsolete Assert.Equal("Config1|Platform1", target3.Format()); #pragma warning restore CS0618 // Type or member is obsolete }