public void TestThatCloneClonesFieldData() { var fixture = new Fixture(); var fieldMock = MockRepository.GenerateMock <IField>(); var fieldData = new FieldData <string, string>(fieldMock, fixture.CreateAnonymous <string>()); Assert.That(fieldData, Is.Not.Null); var cloneFieldData = (IFieldData <string, string>)fieldData.Clone(); Assert.That(cloneFieldData, Is.Not.Null); Assert.That(cloneFieldData.Field, Is.Not.Null); Assert.That(cloneFieldData.Field, Is.EqualTo(fieldData.Field)); Assert.That(cloneFieldData.SourceValue, Is.Not.Null); Assert.That(cloneFieldData.SourceValue, Is.Not.Empty); Assert.That(cloneFieldData.SourceValue, Is.EqualTo(fieldData.SourceValue)); Assert.That(cloneFieldData.Mapping, Is.EqualTo(fieldData.Mapping)); }