コード例 #1
0
        public void ServerSettingsData_Equals_Valid_Expected()
        {
            var expectedServerSettingsData = new ServerSettingsData
            {
                WebServerPort       = 3142,
                WebServerSslPort    = 3143,
                SslCertificateName  = "SslCertificateName",
                CollectUsageStats   = true,
                DaysToKeepTempFiles = 2,
                AuditFilePath       = "some path",
                Sink = nameof(LegacySettingsData),
                ExecutionLogLevel = LogLevel.ERROR.ToString()
            };

            var serverSettingsData = new ServerSettingsData
            {
                WebServerPort       = 3142,
                WebServerSslPort    = 3143,
                SslCertificateName  = "SslCertificateName",
                CollectUsageStats   = true,
                DaysToKeepTempFiles = 2,
                AuditFilePath       = "some path",
                Sink = nameof(LegacySettingsData),
                ExecutionLogLevel = LogLevel.ERROR.ToString()
            };

            Assert.IsTrue(serverSettingsData.Equals(expectedServerSettingsData));
        }
コード例 #2
0
        public void ServerSettingsData_Equals_Valid_Expected()
        {
            var expectedServerSettingsData = new ServerSettingsData
            {
                WebServerPort       = 3142,
                WebServerSslPort    = 3143,
                SslCertificateName  = "SslCertificateName",
                CollectUsageStats   = true,
                DaysToKeepTempFiles = 2,
                AuditFilePath       = "AuditFilePath"
            };

            var serverSettingsData = new ServerSettingsData
            {
                WebServerPort       = 3142,
                WebServerSslPort    = 3143,
                SslCertificateName  = "SslCertificateName",
                CollectUsageStats   = true,
                DaysToKeepTempFiles = 2,
                AuditFilePath       = "AuditFilePath"
            };

            Assert.IsTrue(serverSettingsData.Equals(expectedServerSettingsData));
        }