public void TestExportedValueCachesNullValue() { var container = ContainerFactory.Create(); var exporter = new ExportsMutableProperty(); exporter.Property = null; container.ComposeParts(exporter); Assert.Null(container.GetExportedValue <string>("Property")); exporter.Property = "Value1"; // Exported value should have been cached and so it shouldn't change Assert.Null(container.GetExportedValue <string>("Property")); }
public void TestExportedValueCachesNullValue() { var container = ContainerFactory.Create(); var exporter = new ExportsMutableProperty(); exporter.Property = null; container.ComposeParts(exporter); Assert.IsNull(container.GetExportedValue<string>("Property")); exporter.Property = "Value1"; // Exported value should have been cached and so it shouldn't change Assert.IsNull(container.GetExportedValue<string>("Property")); }