public void Return_rcuFunctionalObject_null_when_invoked_twice_and_only_1_instance_available() { var _proxy = new KeyObjectRcuFunctionalObjectProxy(_proxyDictionnary); var x = _proxy.GetObjectInstance(_keyObject2, _rcuController); var y = _proxy.GetObjectInstance(_keyObject2, _rcuController); Check.That(y).IsNull(); }
public void Return_rcuFunctionalObject_100_and_instance_1_when_invoked_twice_with_KeyObject_100() { var _proxy = new KeyObjectRcuFunctionalObjectProxy(_proxyDictionnary); var x = _proxy.GetObjectInstance(_keyObject1, _rcuController); var y = _proxy.GetObjectInstance(_keyObject1, _rcuController); Check.That(y.RcuFunctionalObject).IsEqualTo(_rcuFunctionalObject1); Check.That(y.InstanceNumber).IsEqualTo(1); }
public void Return_rcuFunctionalObject_200_and_instance_0_when_invoked_with_KeyObject_200() { var _proxy = new KeyObjectRcuFunctionalObjectProxy(_proxyDictionnary); var x = _proxy.GetObjectInstance(_keyObject2, _rcuController); Check.That(x.RcuFunctionalObject).IsEqualTo(_rcuFunctionalObject2); Check.That(x.InstanceNumber).IsEqualTo(0); }