コード例 #1
0
        public void TestSelfType()
        {
            SelfType type = new SelfType();

            type.SelfProperty = type;

            ISimpleService svc = Simply.Do[ConfigKey].Resolve <ISimpleService>();

            svc.TestSelfType(type).Should().Be.True();
        }
コード例 #2
0
 public bool TestSelfType(SelfType selfObject)
 {
     return(object.ReferenceEquals(selfObject, selfObject.SelfProperty));
 }