Beispiel #1
0
        public void GetSmartObjects_DefaultValues()
        {
            // Arrange
            var expected = SmartObjectInfo.Create(Resources.SmartObjectDefinition_ProcessInfo);

            var mockSmartObjectExplorer = Mock.Of <SmartObjectExplorer>();

            mockSmartObjectExplorer.SmartObjects.Add(expected);

            MockWrapperFactory.Instance.SmartObjectManagementServer
            .Setup(i => i.GetSmartObjects(
                       It.IsAny <Guid[]>()))
            .Returns(mockSmartObjectExplorer);

            // Action
            var actual = SmartObjectHelper.GetSmartObjects(new Guid[] { });

            // Assert
            Assert.AreEqual(expected, actual.FirstOrDefault());
        }