public void TestShouldRunBuild()
        {
            TrackerRequired TestSubject = new TrackerRequired();

            ToolKitStub ToolKitStub = new ToolKitStub();
            TestSubject.ToolKit = ToolKitStub;

            int[] IdList = new int[2] { 1234, 2345 };
            ToolKitStub.QueryIdList = IdList;

            TestSubject.Condition = true;
            TestSubject.WithModifications = false;

            TestSubject.ConnectionInformation = new ConnectionInformation();
            TestSubject.ConnectionInformation.dbmsLoginMode = 2;
            TestSubject.ConnectionInformation.dbmsPassword = "******";
            TestSubject.ConnectionInformation.dbmsServer = "s";
            TestSubject.ConnectionInformation.dbmsType = "t";
            TestSubject.ConnectionInformation.dbmsUserName = "******";
            TestSubject.ConnectionInformation.Password = "******";
            TestSubject.ConnectionInformation.ProjectName = "n";
            TestSubject.ConnectionInformation.UserName = "******";

            TestSubject.QueryInforation = new Query();
            TestSubject.QueryInforation.Name = "q";

            RecorderIIntegrationResult ResultRecorder = new RecorderIIntegrationResult();
            ResultRecorder.Recordings.HasModificationsRecording.ReturnValue = false;

            bool ShouldRun = TestSubject.ShouldRunBuild(ResultRecorder);

            Assert.IsTrue(ShouldRun);
        }
    public void TestSerialization()
    {
        ForcedIntegrationFilter TestSubject = new ForcedIntegrationFilter();

        TrackerRequired ScrReq = new TrackerRequired();

        ScrReq.Condition = true;

        ScrReq.ConnectionInformation = new ConnectionInformation();
        ScrReq.ConnectionInformation.dbmsLoginMode = 2;
        ScrReq.ConnectionInformation.dbmsPassword = "******";
        ScrReq.ConnectionInformation.dbmsServer = "s";
        ScrReq.ConnectionInformation.dbmsType = "t";
        ScrReq.ConnectionInformation.dbmsUserName = "******";
        ScrReq.ConnectionInformation.Password = "******";
        ScrReq.ConnectionInformation.ProjectName = "n";
        ScrReq.ConnectionInformation.UserName = "******";

        ScrReq.QueryInforation = new Query();
        ScrReq.QueryInforation.Name = "q";

        ScrReq.WithModifications = true;

        TestSubject.Blocked = new IIntegrationFilter[1] { ScrReq };

        string Serialized = Serialize("forcedIntegrationFilter", TestSubject);
        System.Diagnostics.Debug.WriteLine(Serialized);

        Assert.IsNotNull(Serialized);

        ForcedIntegrationFilter Clone = (ForcedIntegrationFilter)Deserialize(Serialized);

        Assert.IsNotNull(Clone.Blocked);
        Assert.AreEqual(1, Clone.Blocked.Length);
        Assert.IsNotNull(Clone.Blocked[0]);
    }