public void MultipleSurrogates02Test() { SurrogatesRegister subject = new SurrogatesRegister(); subject.RegisterSurrogate(1.0, typeof(String), new TestSurrogate()); subject.RegisterSurrogate(2.4, typeof(String), new TestSurrogate()); }
public void MultipleSurrogates01Test() { SurrogatesRegister subject = new SurrogatesRegister(); subject.RegisterSurrogate(1.0, typeof(String), new TestSurrogate()); subject.RegisterSurrogate(1.0, typeof(Decimal), new TestSurrogate()); Assert.AreEqual(2, subject.ListRegistrations().Count); }
public void NullSurrogateTest() { SurrogatesRegister subject = new SurrogatesRegister(); subject.RegisterSurrogate(1.0, typeof(String), null); }