public void DeleteSmartObject_SmartObjectNotExists() { // Arrange var smartObjectInfo = SmartObjectInfo.Create(Resources.SmartObjectDefinition_ProcessInfo); SmartObjectManagementServer smartObjectManagementServer = null; var mockSmartObjectExplorer = Mock.Of <SmartObjectExplorer>(); mockSmartObjectExplorer.SmartObjects.Add(smartObjectInfo); MockWrapperFactory.Instance.SmartObjectManagementServer .Setup(i => i.GetSmartObjects( It.IsAny <string>())) .Returns(mockSmartObjectExplorer); // Action SmartObjectHelper.DeleteSmartObject(smartObjectManagementServer, Guid.NewGuid().ToString()); }