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)); } }