public void JassToolsMap() { var personBasic = new personBasic(); var personBasicExtended1 = new personBasicExtended1(); personBasic.name = "juan"; personBasic.age = 10; personBasicExtended1.gender = 1; var mapper = new JassCommonAttributesMapper<personBasic, personBasic, personBasicExtended1>(); mapper.map(personBasic, personBasicExtended1); Assert.IsTrue(personBasicExtended1.name == personBasic.name); Assert.IsTrue(personBasicExtended1.age == personBasic.age); }
public void JassToolsEqual() { var personBasic = new personBasic(); var personBasicExtended = new personBasicExtended1(); personBasic.name = "juan"; personBasic.age = 10; personBasicExtended.name = "juan"; personBasicExtended.age = 10; personBasicExtended.gender = 1; var mapper = new JassCommonAttributesMapper<personBasic, personBasic, personBasicExtended1>(); mapper.map(personBasic, personBasicExtended); var result = mapper.compare(personBasic, personBasicExtended); Assert.IsTrue(result); }