public void NullBuilder_Restore() { // Arrange var assemblerUnderTest = new BuilderAssembler<NullBuilder, NullBuilderDTO>(null); var dto = new NullBuilderDTO() { Label = "test" }; // Act var restored = assemblerUnderTest.Restore(dto); // Assert Assert.IsNotNull(restored); Assert.IsInstanceOf<NullBuilder>(restored); var builder = (NullBuilder)restored; Assert.AreEqual(dto.Label, builder.Label); }