Esempio n. 1
0
        public void TestAsPublisher()
        {
            AbsDiskSegment aSegTrans = (AbsDiskSegment)GetMockSegments().GetValue(0);

            var testDS = Substitute.For <AbsDiskSegment>();

            Debug.Log(System.String.Format("testDS : {0}, {1}", testDS.r, testDS.theta));
            //This is the limitation of NSub...you can't call base
            //testDS.Rotate(45f,1f);
        }
Esempio n. 2
0
 public RelativeDiskSegment(AbsDiskSegment adaptee)
 {
     mSegment      = adaptee;
     relativeR     = mSegment.r;
     relativeTheta = mSegment.theta;
 }