Exemple #1
0
 public void TestInitialize()
 {
     _testEntity        = new ProjectWorkspaceSynch();
     _testEntityPrivate = new PrivateObject(_testEntity);
     _shimsContext      = ShimsContext.Create();
     _adoShims          = AdoShims.ShimAdoNetCalls();
     SetupDefaultShims();
 }
Exemple #2
0
        public void TestInitialize()
        {
            _loggerInvoked = false;
            _shimObject    = ShimsContext.Create();
            Setup();

            _projectWorkspaceSynch = new ProjectWorkspaceSynch(new Guid(), DummyString, new Guid(), DummyString);
            _privateObject         = new PrivateObject(_projectWorkspaceSynch);
            InitializeSetup();
        }
Exemple #3
0
        public void GetSchemaXml_SPFieldAndFieldNameDsLengthIsZeroPSDataTypeIsTwentyOne_ReturnXMLString()
        {
            // Arrange
            var parameters = new object[] { new ShimSPField().Instance, DummyString };

            _projectWorkspaceSynch = new ProjectWorkspaceSynch();
            ShimCustomFieldsRow.AllInstances.MD_PROP_TYPE_ENUMGet = _ => 21;
            GetSchemaXmlSetup();

            // Act
            var actualResult = _privateObject.Invoke(
                GetSchemaXml,
                parameters);

            // Assert
            actualResult.ShouldBe(string.Empty);
        }