示例#1
0
 private static void VerifyDispose(StuffSdpCreatorBluetopia stuff)
 {
     Expect.Once.On(stuff.MockApi2).Method("SDP_Delete_Service_Record")
     .With(
         Is.Anything,
         Is.Anything)
     .Will(Return.Value(BluetopiaError.OK));
     stuff.DutSdpCreator.Dispose();
     stuff.Mockery_VerifyAllExpectationsHaveBeenMet();
 }
示例#2
0
        internal static StuffSdpCreatorBluetopia InitMockery_SdpCreator()
        {
            StuffSdpCreatorBluetopia stuff = new StuffSdpCreatorBluetopia();

            InitMockery(stuff, 99);
            Debug.Assert(stuff.StackId == 99);
            //
            stuff.SetDut(new TestBluetopiaSdpCreator(stuff.GetFactory()));
            //
            Expect.Once.On(stuff.MockedApi).Method("SDP_Create_Service_Record")
            .WithAnyArguments()     // HACK ! SDP_Create_Service_Record WithAnyArguments
            .Will(Return.Value(999));
            stuff.SrHandle = 999;
            //
            return(stuff);
        }