Пример #1
0
        public void MirrorClicked_IfDirectWriteSetAsFalse_MirrorsAndSavesImageToAlternativePath()
        {
            // Arrange
            var toolMirror = new ToolMirror();
            var toolMirrorPrivateWrapper = new MsUnitTesting.PrivateObject(toolMirror);

            _imageEditor.Toolbar.Tools.Add(toolMirror);
            _imageEditor.DirectWrite = false;

            // Act
            toolMirrorPrivateWrapper.Invoke("MirrorClicked", null, EventArgs.Empty);

            // Assert
            var alternativeDirectoryFileNames = Directory.GetFiles(ToolImagesAlternativeDirectory);

            alternativeDirectoryFileNames.Length.ShouldBe(1);

            var imagePath = alternativeDirectoryFileNames[0];

            using (var image = ActivePixToolsTestHelper.LoadImage(imagePath))
            {
                var firstPixelOfTheImage = image.GetPixel(0, 0);

                firstPixelOfTheImage.A.ShouldBe(Color.Gray.A);
                firstPixelOfTheImage.R.ShouldBe(Color.Gray.R);
                firstPixelOfTheImage.G.ShouldBe(Color.Gray.G);
                firstPixelOfTheImage.B.ShouldBe(Color.Gray.B);
            }
        }
Пример #2
0
        public void SetUp()
        {
            var imageFileName        = string.Format("{0}.jpg", Guid.NewGuid());
            var imageFileServerPath  = string.Format("{0}\\{1}", ToolImagesDirectory, imageFileName);
            var imageFileVirtualPath = string.Format("/{0}/{1}", ToolImagesFolderName, imageFileName);
            var image = ActivePixToolsTestHelper.CreateDummyImage(InitialImageWidth, InitialImageHeight, ActivePixToolsTestHelper.ColorsDirection.Vertical, new Color[] { Color.Black, Color.Gray });

            ActivePixToolsTestHelper.SaveImage(image, imageFileServerPath);

            var alternativeFiles = Directory.GetFiles(ToolImagesAlternativeDirectory);

            foreach (var file in alternativeFiles)
            {
                System.IO.File.Delete(file);
            }

            _imageEditor               = new ImageEditor();
            _imageEditor.Page          = _shimPage;
            _imageEditor.ImageURL      = imageFileVirtualPath;
            _imageEditor.TempURL       = imageFileVirtualPath;
            _imageEditor.TempDirectory = string.Format("/{0}/", ToolImagesAlternativeFolderName);

            _imageEditorPrivateWrapper = new MsUnitTesting.PrivateObject(_imageEditor);
            _imageEditorPrivateWrapper.Invoke("OnInit", EventArgs.Empty);
        }
        public void OnPreRender_Ns6True_SetsPopupContentValue(bool isIe)
        {
            // Arrange
            MockBrowser(isIe);
            var mockObject = new Mock <ToolFlash>();

            mockObject.Setup(x => x.Parent.Parent.Parent).Returns(new Editor());
            var popupContent = new Popup();

            mockObject.Setup(x => x.PopupContents).Returns(popupContent);
            var testObject    = mockObject.Object;
            var privateObject = new MSTest.PrivateObject(testObject);

            mockObject.CallBase     = true;
            testObject.ImageURL     = NotEmpty;
            testObject.OverImageURL = NotEmpty;

            // Act
            privateObject.Invoke(OnPreRenderMethodName, new EventArgs());

            // Assert
            testObject.ShouldSatisfyAllConditions(
                () => testObject.PopupContents.Height.ShouldBe(isIe ? 460 : 485),
                () => testObject.PopupContents.Width.ShouldBe(430),
                () => testObject.PopupContents.AutoContent.ShouldBe(isIe),
                () => testObject.PopupContents.ContentText.Length.ShouldBe(5450),
                () => testObject.PopupContents.ContentText.ShouldNotContain(EditorIdText),
                () => testObject.ClientSideClick.ShouldBe(ClientSideClickText));
        }
Пример #4
0
        public void MirrorClicked_IfDirectWriteSetAsTrue_MirrorsAndSavesImageDirectly()
        {
            // Arrange
            var toolMirror = new ToolMirror();
            var toolMirrorPrivateWrapper = new MsUnitTesting.PrivateObject(toolMirror);

            _imageEditor.Toolbar.Tools.Add(toolMirror);
            _imageEditor.DirectWrite = true;

            // Act
            toolMirrorPrivateWrapper.Invoke("MirrorClicked", null, EventArgs.Empty);

            // Assert
            var imagePath = _shimHttpServerUtility.Instance.MapPath(_imageEditor.ImageURL);

            using (var image = ActivePixToolsTestHelper.LoadImage(imagePath))
            {
                var firstPixelOfTheImage = image.GetPixel(0, 0);

                firstPixelOfTheImage.A.ShouldBe(Color.Gray.A);
                firstPixelOfTheImage.R.ShouldBe(Color.Gray.R);
                firstPixelOfTheImage.G.ShouldBe(Color.Gray.G);
                firstPixelOfTheImage.B.ShouldBe(Color.Gray.B);
            }
        }
Пример #5
0
        public void CropClicked_IfSelectionValuesAreImproper_RegistersStartupScript()
        {
            // Arrange
            var toolCrop = new ToolCrop();
            var toolCropPrivateWrapper = new MsUnitTesting.PrivateObject(toolCrop);

            _imageEditor.Toolbar.Tools.Add(toolCrop);
            _imageEditor.DirectWrite = true;

            var registeredStartupScriptKey   = string.Empty;
            var registeredStartupScriptValue = string.Empty;

            _shimPage.RegisterStartupScriptStringString =
                (key, value) =>
            {
                registeredStartupScriptKey   = key;
                registeredStartupScriptValue = value;
                _registeredScripts[key]      = value;
            };

            // improper selection
            _imageEditor.Selection.X1 = 0;
            _imageEditor.Selection.Y1 = 0;
            _imageEditor.Selection.X2 = 0;
            _imageEditor.Selection.Y2 = 0;

            // Act
            toolCropPrivateWrapper.Invoke("CropClicked", null, EventArgs.Empty);

            // Assert
            _registeredScripts[registeredStartupScriptKey].ShouldBe(registeredStartupScriptValue);
        }
Пример #6
0
        public void CropClicked_IfDirectWriteSetAsTrueAndX1Y1OfSelectionSetAsZero_CropsAndSavesImageDirectly()
        {
            // Arrange
            var toolCrop = new ToolCrop();
            var toolCropPrivateWrapper = new MsUnitTesting.PrivateObject(toolCrop);

            _imageEditor.Toolbar.Tools.Add(toolCrop);
            _imageEditor.DirectWrite = true;

            // Values for cropping the black section
            _imageEditor.Selection.X1 = 0;
            _imageEditor.Selection.Y1 = 0;
            _imageEditor.Selection.X2 = 50;
            _imageEditor.Selection.Y2 = 50;

            // Act
            toolCropPrivateWrapper.Invoke("CropClicked", null, EventArgs.Empty);

            // Assert
            var imagePath = _shimHttpServerUtility.Instance.MapPath(_imageEditor.ImageURL);

            using (var image = ActivePixToolsTestHelper.LoadImage(imagePath))
            {
                image.Width.ShouldBe(50);
                image.Height.ShouldBe(50);

                var firstPixelOfTheImage = image.GetPixel(0, 0);

                firstPixelOfTheImage.A.ShouldBe(Color.Black.A);
                firstPixelOfTheImage.R.ShouldBe(Color.Black.R);
                firstPixelOfTheImage.G.ShouldBe(Color.Black.G);
                firstPixelOfTheImage.B.ShouldBe(Color.Black.B);
            }
        }
Пример #7
0
        public void NoAlerts_NotSilenced()
        {
            var  invoker = new VSUnitTesting.PrivateObject(AlertManager.Instance);
            bool result  = (bool)invoker.Invoke("IsSilenced", new Object[] { null });

            Assert.That(result, Is.False);
        }
Пример #8
0
        public void FillFilterByComboTest()
        {
            //LoginFormFake loginFormFake = new LoginFormFake();
            //Mock<MainForm> mainFormMock = new Mock<MainForm>(loginFormFake);
            //IMainForm mainFormFake = new MainFormFake();
            Mock <IMainForm>          mainFormMock       = new Mock <IMainForm>();
            Mock <HDRoutesModel>      hdRoutesMock       = new Mock <HDRoutesModel>("");
            Mock <IEditVolunteerForm> voulenteerFormMock = new Mock <IEditVolunteerForm>();

            //TODO: Error here with main form. Replace the main form used with a fake, similar to the login form
            HDPlannerView planForm = new HDPlannerView(mainFormMock.Object, hdRoutesMock.Object, voulenteerFormMock.Object);

            ComboBox cbo = new ComboBox();

            // Set up the data table with information to test the function
            DataTable inTable = new DataTable();

            inTable.Columns.Add("COLUMN_NAME");
            string[] itemsList = new string[] { "1st", "2nd", "something", "item" };
            foreach (string item in itemsList)
            {
                inTable.Rows.Add(new string[] { item });
            }

            ComboBox outCombo = new ComboBox();

            UnitTestingTools.PrivateObject privPlanForm = new UnitTestingTools.PrivateObject(planForm);
            privPlanForm.Invoke("FillFilterByCombo", new object[] { inTable, outCombo });

            string[] outputItems = new string[itemsList.Length];
            outCombo.Items.CopyTo(outputItems, 0);

            Assert.AreEqual(itemsList, outputItems);
        }
Пример #9
0
 public void TestLoginFail()
 {
     AllDebrid all = new AllDebrid(username: this.username, password: "******");
     PrivateObject obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
     var result = obj.Invoke("Login", "WrongUsername", "WrongPassword");
     Assert.IsFalse((bool)result);
     Assert.IsNull(obj.GetField("_cookie"));
 }
Пример #10
0
 protected override void SetPageSessionContext()
 {
     base.SetPageSessionContext();
     _baseChannel       = new BaseChannelUpdateEmail();
     _privateTestObject = new MSUTesting.PrivateObject(_baseChannel);
     InitializeAllControls(_baseChannel);
     InitializeSessionFakes();
 }
        public void BookModel_GetWriteableMembers_IncludesExpectedMember(string expectedMemberName)
        {
            var book             = new BookModel();
            var invoker          = new VSUnitTesting.PrivateObject(book);
            var writeableMembers = invoker.Invoke("GetWriteableMembers") as HashSet <string>;

            Assert.That(writeableMembers.Contains(expectedMemberName), Is.True);
        }
        public void Constructor_ShouldAssignRoundsParameterValueToPrivateFieldRounds_IfRoundsParameterHasCorrectValue(int rounds)
        {
            var doubleDefenseWhenDefending = new DoubleDefenseWhenDefending(rounds);
            var doubleDefenseWhenDefendingAsPrivateObject = new MSTest.PrivateObject(doubleDefenseWhenDefending);

            var actualValue = (int)doubleDefenseWhenDefendingAsPrivateObject.GetField("rounds");

            Assert.AreEqual(rounds, actualValue);
        }
        public void Setup()
        {
            _context = ShimsContext.Create();
            InitializeHttpContext();
            InitializeQueryString();

            _groupSubscribe = new groupsubscribe();
            _privateObject  = new MsTest.PrivateObject(_groupSubscribe);
        }
Пример #14
0
        public void Url_And_CookieContainer_Are_Set_On_Service_From_Uri()
        {
            //testing this using a private object reading the internal service field as nothing
            //public can run this without making a call to the live service
            var service = new MsTest.PrivateObject(new BirstServiceWrapper(new Uri("http://birst"))).GetField("_service") as CommandWebService;

            Assert.That(service.Url, Is.EqualTo("http://birst/CommandWebService.asmx"));
            Assert.That(service.CookieContainer, Is.Not.Null);
        }
Пример #15
0
        public void TestLoginFail()
        {
            AllDebrid     all    = new AllDebrid(username: this.username, password: "******");
            PrivateObject obj    = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
            var           result = obj.Invoke("Login", "WrongUsername", "WrongPassword");

            Assert.IsFalse((bool)result);
            Assert.IsNull(obj.GetField("_cookie"));
        }
 internal static object CreatePrivate(global::System.DateTime date)
 {
     object[] args = new object[] {
         date
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("lunar", "LunarCore.Solar", new System.Type[] {
         typeof(global::System.DateTime)
     }, args);
     return(priv_obj.Target);
 }
 internal static object CreatePrivate(global::TiS.Recognition.Common.TLine line)
 {
     object[] args = new object[] {
         line
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Recognition.Locator", "Recognition.Locator.DataLineIndexer", new System.Type[] {
         typeof(global::TiS.Recognition.Common.TLine)
     }, args);
     return(priv_obj.Target);
 }
Пример #18
0
 internal static object CreatePrivate(global::System.Xml.XmlDocument document)
 {
     object[] args = new object[] {
         document
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("WXML.Model", "WXML.Model.WXMLModelReader", new System.Type[] {
         typeof(global::System.Xml.XmlDocument)
     }, args);
     return(priv_obj.Target);
 }
Пример #19
0
        public void Constructor_ShouldAssignTheCorrectTypeToFieldCreatureTypeToHate()
        {
            var typeToHate = typeof(FakeCreature);
            var hate       = new Hate(typeToHate);

            var hateAsPrivateObject = new MSTest.PrivateObject(hate);
            var actual = hateAsPrivateObject.GetField("creatureTypeToHate");

            Assert.AreEqual(typeToHate, actual);
        }
Пример #20
0
 internal static object CreatePrivate(int version)
 {
     object[] args = new object[] {
         version
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("SWA.Ariadne.Model", "SWA.Ariadne.Model.MazeDimensions", new System.Type[] {
         typeof(int)
     }, args);
     return(priv_obj.Target);
 }
Пример #21
0
 internal static global::System.Exception CreatePrivate(global::Microsoft.Ajax.Utilities.ConsoleOutputMode outputMode)
 {
     object[] args = new object[] {
         outputMode
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("AjaxMin", "Microsoft.Ajax.Utilities.MainClass+UsageException", new System.Type[] {
         typeof(global::Microsoft.Ajax.Utilities.ConsoleOutputMode)
     }, args);
     return((global::System.Exception)(priv_obj.Target));
 }
Пример #22
0
 internal static object CreatePrivate(string[] args)
 {
     object[] _args = new object[] {
         args
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("AjaxMin", "Microsoft.Ajax.Utilities.MainClass", new System.Type[] {
         typeof(string).MakeArrayType()
     }, _args);
     return(priv_obj.Target);
 }
Пример #23
0
 internal static global::System.ComponentModel.DisplayNameAttribute CreatePrivate(string name)
 {
     object[] args = new object[] {
         name
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Microsoft.VisualStudio.Project.Samples.NestedProject", "Microsoft.VisualStudio.Project.Samples.NestedProject.LocDisplayNameAttribute", new System.Type[] {
         typeof(string)
     }, args);
     return((global::System.ComponentModel.DisplayNameAttribute)(priv_obj.Target));
 }
Пример #24
0
 internal static global::System.ComponentModel.CategoryAttribute CreatePrivate(string category)
 {
     object[] args = new object[] {
         category
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Microsoft.VisualStudio.Project.Samples.NestedProject", "Microsoft.VisualStudio.Project.Samples.NestedProject.ResourcesCategoryAttribute", new System.Type[] {
         typeof(string)
     }, args);
     return((global::System.ComponentModel.CategoryAttribute)(priv_obj.Target));
 }
Пример #25
0
        public void ApplyOnSkip_ShouldAssignTheCorrectValue_WhenPassedAValidParameter()
        {
            var expectedDefenseToAdd    = 5;
            var addDefenseWhenSkip      = new AddDefenseWhenSkip(expectedDefenseToAdd);
            var privateAddDefenseOnSkip = new msTest.PrivateObject(addDefenseWhenSkip);

            var actualValue = privateAddDefenseOnSkip.GetField("defenseToAdd");

            Assert.AreEqual(expectedDefenseToAdd, actualValue);
        }
Пример #26
0
 internal static object CreatePrivate(string name)
 {
     object[] args = new object[] {
         name
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("RssToolkit", "RssToolkit.Rss.CodeGeneration.ClassInfo", new System.Type[] {
         typeof(string)
     }, args);
     return(priv_obj.Target);
 }
        public void Constructor_ShouldSetTheCorrectValueToPercentageField()
        {
            var expectedPercentage = 50m;
            var specialty          = new ReduceEnemyDefenseByPercentage(expectedPercentage);

            var specialtyAsPrivateObject = new MSTest.PrivateObject(specialty);
            var actualPercentage         = specialtyAsPrivateObject.GetProperty("Percentage");

            Assert.AreEqual(expectedPercentage, actualPercentage);
        }
Пример #28
0
        public void Test_fieldProperty()
        {
            Employee newSampleClass = new Employee {
                _id = 2, EmployeeName = "Manjushree"
            };

            Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject pobject = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(newSampleClass);

            Assert.AreEqual <int?>(2, pobject.GetFieldOrProperty("_id") as int?);
            Assert.AreEqual <string>("Manjushree", pobject.GetFieldOrProperty("EmployeeName") as string);
        }
Пример #29
0
        public void TestLoginSuccess()
        {
            AllDebrid     all          = new AllDebrid(username: this.username, password: this.password);
            PrivateObject obj          = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
            var           result       = obj.Invoke("Login", this.username, this.password);
            var           attrCookie   = obj.GetFieldOrProperty("_cookie");
            var           attrDaysLeft = obj.GetFieldOrProperty("daysLeft");

            Assert.IsNotNull(attrCookie);
            Assert.IsTrue((bool)result);
            Assert.IsNotNull(attrDaysLeft);
        }
Пример #30
0
 internal static OANestedProjectProperty CreatePrivate(OANestedProjectProperties parent, string name)
 {
     object[] args = new object[] {
         parent,
         name
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(OANestedProjectProperty), new System.Type[] {
         typeof(OANestedProjectProperties),
         typeof(string)
     }, args);
     return((OANestedProjectProperty)(priv_obj.Target));
 }
Пример #31
0
 internal static object CreatePrivate(global::RssToolkit.Opml.OpmlOutline ol, int index)
 {
     object[] args = new object[] {
         ol,
         index
     };
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("RssToolkit", "RssToolkit.Opml.OutlineInfo", new System.Type[] {
         typeof(global::RssToolkit.Opml.OpmlOutline),
         typeof(int)
     }, args);
     return(priv_obj.Target);
 }
Пример #32
0
 public void TestLoginSuccess()
 {
     AllDebrid all = new AllDebrid(username: this.username, password: this.password);
     PrivateObject obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(all);
     var result = obj.Invoke("Login", this.username, this.password);
     var attrCookie = obj.GetFieldOrProperty("_cookie");
     var attrDaysLeft = obj.GetFieldOrProperty("daysLeft");
     Assert.IsNotNull(attrCookie);
     Assert.IsTrue((bool)result);
     Assert.IsNotNull(attrDaysLeft);
     
 }
Пример #33
0
 internal static global::KapitalLib.KapitalManager CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::KapitalLib.KapitalManager), new System.Type[0], args);
     return ((global::KapitalLib.KapitalManager)(priv_obj.Target));
 }
Пример #34
0
 internal static object CreatePrivate()
 {
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("trx2html", "trx2html.ResourceReader", new object[0]);
     return priv_obj.Target;
 }
Пример #35
0
 protected BaseAccessor(object target, Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType type)
 {
     m_privateObject = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(target, type);
 }
Пример #36
0
 internal static object CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("BusinessLayer", "IGRSS.BusinessObjects.WorkflowServices.ContextService", new System.Type[0], args);
     return priv_obj.Target;
 }
Пример #37
0
		internal static object CreatePrivate()
		{
			Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("SenseNet.Portal", "SenseNet.Portal.UrlNameValidator", new object[0]);
			return priv_obj.Target;
		}
 internal static global::System.EventArgs CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Microsoft.VisualStudio.Shell", "Microsoft.VisualStudio.Shell.DialogPage+PageApplyEventArgs", new System.Type[0], args);
     return ((global::System.EventArgs)(priv_obj.Target));
 }
Пример #39
0
 internal static global::IGRSS.SdcService.GetStampDutyCalculationCompletedEventArgs CreatePrivate(object[] results, global::System.Exception exception, bool cancelled, object userState)
 {
     object[] args = new object[] {
         results,
         exception,
         cancelled,
         userState};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::IGRSS.SdcService.GetStampDutyCalculationCompletedEventArgs), new System.Type[] {
             typeof(object).MakeArrayType(),
             typeof(global::System.Exception),
             typeof(bool),
             typeof(object)}, args);
     return ((global::IGRSS.SdcService.GetStampDutyCalculationCompletedEventArgs)(priv_obj.Target));
 }
Пример #40
0
		internal static global::SenseNet.Portal.Virtualization.PortalContext CreatePrivate(global::System.Web.HttpContext context, string repositoryPath, global::SenseNet.ContentRepository.Storage.Schema.NodeType nodeType, string siteUrl)
		{
			object[] args = new object[] {
                context,
                repositoryPath,
                nodeType,
                siteUrl};
			Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::SenseNet.Portal.Virtualization.PortalContext), new System.Type[] {
                    typeof(global::System.Web.HttpContext),
                    typeof(string),
                    typeof(global::SenseNet.ContentRepository.Storage.Schema.NodeType),
                    typeof(string)}, args);
			return ((global::SenseNet.Portal.Virtualization.PortalContext)(priv_obj.Target));
		}
Пример #41
0
 internal static object CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("ImageRakerToolbar", "ImageRakerToolbar.UsageReporter", new System.Type[0], args);
     return priv_obj.Target;
 }
Пример #42
0
 internal static object CreatePrivate() {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("NhsCui.Toolkit", "NhsCui.Toolkit.DateAndTime.Resources.NhsTimeResources", new System.Type[0], args);
     return priv_obj.Target;
 }
Пример #43
0
 internal static global::Microsoft.Practices.EnterpriseLibrary.Data.Database CreatePrivate(string connectionString, global::System.Data.Common.DbProviderFactory dbProviderFactory) {
     object[] args = new object[] {
             connectionString,
             dbProviderFactory};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Microsoft.Practices.EnterpriseLibrary.Data.Database), new System.Type[] {
                 typeof(string),
                 typeof(global::System.Data.Common.DbProviderFactory)}, args);
     return ((global::Microsoft.Practices.EnterpriseLibrary.Data.Database)(priv_obj.Target));
 }
Пример #44
0
 internal static object CreatePrivate(string _homeTeam, string _awayTeam) {
     object[] args = new object[] {
             _homeTeam,
             _awayTeam};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("NHLScoreBot", "NHLScoreBot.NHLJacked", new System.Type[] {
                 typeof(string),
                 typeof(string)}, args);
     return priv_obj.Target;
 }
Пример #45
0
 internal static global::Aga.Controls.Tree.TreeNodeAdv CreatePrivate(global::Aga.Controls.Tree.TreeViewAdv tree, object tag)
 {
     object[] args = new object[] {
         tree,
         tag};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Aga.Controls.Tree.TreeNodeAdv), new System.Type[] {
             typeof(global::Aga.Controls.Tree.TreeViewAdv),
             typeof(object)}, args);
     return ((global::Aga.Controls.Tree.TreeNodeAdv)(priv_obj.Target));
 }
Пример #46
0
 internal static object CreatePrivate(string[] args)
 {
     object[] _args = new object[] {
         args};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("AjaxMin", "Microsoft.Ajax.Utilities.MainClass", new System.Type[] {
             typeof(string).MakeArrayType()}, _args);
     return priv_obj.Target;
 }
Пример #47
0
 internal static global::System.Exception CreatePrivate(global::Microsoft.Ajax.Utilities.ConsoleOutputMode outputMode, string format, params object[] args)
 {
     object[] _args = new object[] {
         outputMode,
         format,
         args};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("AjaxMin", "Microsoft.Ajax.Utilities.MainClass+UsageException", new System.Type[] {
             typeof(global::Microsoft.Ajax.Utilities.ConsoleOutputMode),
             typeof(string),
             typeof(object).MakeArrayType()}, _args);
     return ((global::System.Exception)(priv_obj.Target));
 }
Пример #48
0
 internal static object CreatePrivate()
 {
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Media.BC", "Media.BC.MediaFileNameParser", new object[0]);
     return priv_obj.Target;
 }
Пример #49
0
 internal static global::System.Exception CreatePrivate(global::Microsoft.Ajax.Utilities.ConsoleOutputMode outputMode)
 {
     object[] args = new object[] {
         outputMode};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("AjaxMin", "Microsoft.Ajax.Utilities.MainClass+UsageException", new System.Type[] {
             typeof(global::Microsoft.Ajax.Utilities.ConsoleOutputMode)}, args);
     return ((global::System.Exception)(priv_obj.Target));
 }
Пример #50
0
 internal static global::Aga.Controls.Tree.TreeNodeAdv CreatePrivate(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context)
 {
     object[] args = new object[] {
         info,
         context};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::Aga.Controls.Tree.TreeNodeAdv), new System.Type[] {
             typeof(global::System.Runtime.Serialization.SerializationInfo),
             typeof(global::System.Runtime.Serialization.StreamingContext)}, args);
     return ((global::Aga.Controls.Tree.TreeNodeAdv)(priv_obj.Target));
 }
Пример #51
0
		internal static object CreatePrivate(global::SenseNet.ContentRepository.Versioning.VersioningType type, global::SenseNet.ContentRepository.Storage.VersionStatus status, global::SenseNet.ContentRepository.Versioning.StateAction action)
		{
			object[] args = new object[] {
                type,
                status,
                action};
			Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("SenseNet.ContentRepository", "SenseNet.ContentRepository.Versioning.ContentStateMachine", new System.Type[] {
                    typeof(global::SenseNet.ContentRepository.Versioning.VersioningType),
                    typeof(global::SenseNet.ContentRepository.Storage.VersionStatus),
                    typeof(global::SenseNet.ContentRepository.Versioning.StateAction)}, args);
			return priv_obj.Target;
		}
Пример #52
0
 internal static global::System.ComponentModel.DisplayNameAttribute CreatePrivate(string name)
 {
     object[] args = new object[] {
         name};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Microsoft.VisualStudio.Project.Samples.NestedProject", "Microsoft.VisualStudio.Project.Samples.NestedProject.LocDisplayNameAttribute", new System.Type[] {
             typeof(string)}, args);
     return ((global::System.ComponentModel.DisplayNameAttribute)(priv_obj.Target));
 }
Пример #53
0
 internal static object CreatePrivate()
 {
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("BusinessLayer", "IGRSS.BusinessObjects.IgrssAdapters", new object[0]);
     return priv_obj.Target;
 }
Пример #54
0
 internal static OANestedProjectProperty CreatePrivate(OANestedProjectProperties parent, string name)
 {
     object[] args = new object[] {
         parent,
         name};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(OANestedProjectProperty), new System.Type[] {
             typeof(OANestedProjectProperties),
             typeof(string)}, args);
     return ((OANestedProjectProperty)(priv_obj.Target));
 }
Пример #55
0
 internal static global::IGRSS.BusinessObjects.WorkflowServices.WorkflowMediator CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::IGRSS.BusinessObjects.WorkflowServices.WorkflowMediator), new System.Type[0], args);
     return ((global::IGRSS.BusinessObjects.WorkflowServices.WorkflowMediator)(priv_obj.Target));
 }
Пример #56
0
 internal static global::System.ComponentModel.DescriptionAttribute CreatePrivate(string description)
 {
     object[] args = new object[] {
         description};
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("Microsoft.VisualStudio.Project.Samples.NestedProject", "Microsoft.VisualStudio.Project.Samples.NestedProject.ResourcesDescriptionAttribute", new System.Type[] {
             typeof(string)}, args);
     return ((global::System.ComponentModel.DescriptionAttribute)(priv_obj.Target));
 }
Пример #57
0
 internal static global::System.ComponentModel.Component CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("BusinessLayer", "IGRSS.DataAccessLayer.RevenueStampMasterTableAdapters.RevenueStampMasterTableAdap" +
         "ter", new System.Type[0], args);
     return ((global::System.ComponentModel.Component)(priv_obj.Target));
 }
Пример #58
0
 internal static object CreatePrivate() {
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("NHLScoreBot", "NHLScoreBot.YahooParser", new object[0]);
     return priv_obj.Target;
 }
Пример #59
0
 internal static object CreatePrivate()
 {
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject("BusinessLayer", "IGRSS.BusinessLogicLayer.Administration.VillageMasterAdmin", new object[0]);
     return priv_obj.Target;
 }
Пример #60
0
 internal static global::FlickrNet.UtilityMethods CreatePrivate()
 {
     object[] args = new object[0];
     Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject priv_obj = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(typeof(global::FlickrNet.UtilityMethods), new System.Type[0], args);
     return ((global::FlickrNet.UtilityMethods)(priv_obj.Target));
 }