コード例 #1
0
        public void AllPropertiesCopied()
        {
            var options = new TestOptions();
            var wrappedOptions = new ReadWriteApiPortOptions(options);

            foreach (var property in typeof(IApiPortOptions).GetProperties(BindingFlags.Instance | BindingFlags.Public))
            {
                Assert.Equal(property.GetValue(options), property.GetValue(wrappedOptions));
            }
        }
コード例 #2
0
        public void AllPropertiesCopied()
        {
            var options        = new TestOptions();
            var wrappedOptions = new ReadWriteApiPortOptions(options);

            foreach (var property in typeof(IApiPortOptions).GetProperties(BindingFlags.Instance | BindingFlags.Public))
            {
                Assert.Equal(property.GetValue(options), property.GetValue(wrappedOptions));
            }
        }