protected override void Store() { PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data psfv = new PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data(); psfv.one = PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .One; psfv.two = PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .Two; psfv.three = PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .Three; Store(psfv); }
public virtual void Test() { PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data psfv = (PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data )((PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data)RetrieveOnlyInstance (typeof(PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data) )); Assert.AreSame(PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .One, psfv.one); Assert.AreSame(PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .Two, psfv.two); Assert.AreNotSame(PersistStaticFieldValuesTestSuite.PersistStaticFieldValuesTestUnit.Data .Three, psfv.three); }