コード例 #1
0
			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);
			}
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }