SharePoint 2013 Unit Tests

Hi,
   I am interesting in creating unit tests in sharepoint 2013. Could you give me some information, which tools should I use to make this one? Is there aby good practise for SP?
Regards
Kamil

the short story: haha... yea... don't try.
the long story: Shortly after the 2010 release, Microsoft provided the SharePoint Emulator library (nuget package), which is basically an MS Fakes implementation of *some* of the SP API. I don't think it's been updated for 2013, but you can create the fakes
within Visual Studio). The issue, is that there are a LOT of places where the approach (Fakes, and emulating SP API) is insufficient - for example, adding an event receiver to a list has conditional logic depending on whether the list has content types enabled
or not - this logic is absent in the emulation logic, and makes for a bad experience developing (and relying on) unit tests. Secondarily, much of SharePoint is environment and configuration specific (using the user profile service? is it configured? are the
fields mapped correctly?). Assuming that the fakes even handled such logic correctly (they don't), the code required to ARRANGE the unit test would be obnoxious.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs

Similar Messages

  • Discover more sharepoint 2013 Farm

     
    Dear all,
    We have three sharepoint 2013 Farm ( test , staging ,PROD ). I have discovered test Farm after modify microsoft.sharepoint.foundation.library.mp with test server  , after that when i change
    the test to staging server in config file staging farm will get discover however test will get move off ( disappear ). my question is how to discover two or more farm , we are having different credential for each farm.
    Thanks,
    Sengo

    Hello,
    See if the following link helps you.
    http://blogs.technet.com/b/mgoedtel/archive/2012/01/07/sharepoint-2010-multi-farm-monitoring.aspx
    Thanks,
    Tom
    Kind Regards, Tom Ziegler | http://www.sccmguy.com | Twitter @Tom_Ziegler

  • Unit Testing with Microsoft Sharepoint Emulators and Fakes with Visual Studio 2013

    Hi All,
    I have created Test Project and now creating Test cases for Sharepoint. I found a link on MSDN which suggests using Fakes framework but it supports VS2012 and I am using Visual Studio 2013.
    So how can I use it with VS2013 or is there any other way with which I can implement the Test cases with VS2013.
    Please suggest.
    Thanks in advance.
    Himanshu Nigam

    Hi HimanshuNigam,
    According to your descrition, my understanding is that you want to use Fakes framework to create test case for SharePoint project in Visual Studio 2013.
    If you want to test using Fakes Framework, you can use the codeplex extension to achieve it. It supports Visual Studio 2013.
    Here is a detailed article for your reference:
    Better Unit Testing with Microsoft Fakes
    About how to include the Nuget package, you can use the package with the link below:
    NuGet Package Manager for Visual Studio 2013
    Installing NuGet
    If you still have question about this issue, I suggest you can create a post in Visual Studio, more experts will help you and you can get more detailed information from there:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to test the migrated workflows in SharePoint 2013

    Hi, we are migrated the portal from SharePoint (Moss) 2007 to SharePoint 2013 using Doc Ave tool.
    Now my concern is how to test all (OOTB and SharePoint Designer) workflows are working properly in SharePoint 2013.
    How to approach? Any ideas/help will be appreciated.

    Hi Ashok,
    Have the business users that use them or the folks that created them test them in the DEV environment prior to the PRD migration...
    -Ivan

  • Creating load for performance testing on SSAS and Power View on SharePoint 2013

    We have SQL Server DW, SSAS OLAP Cube and Sharepoint 2013 on dedicated virtual machines.
    We would like to create load simulating use of 500 end-users.
    What are best tools?
    What are best methods?
    Kenny_I

    Hi Kenny_I,
    According to your description, you want to create a PowerView report using SQL Server Analysis Services database in a SharePoint site, now you need to do a load testing for this report, right?
    In SharePoint level, there are many tools that helps in the load testing. For the details, please refer to the link below.
    SharePoint (Performance, Stress ) Load Testing
    For the PowerView report level, you can refer to the link below to see how to track down Power View Performance Problems.
    Tracking down Power View Performance Problems
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to set another instance of same live app as test app sharepoint 2013 provider hosted

    Hi
    I have SharePoint 2013 provider hosted app published in azure now i need to deploy another instance on same app as separate app for testing purposes, i have created another site in azure and done all profile adding packaging the app with visual studio to
    deploy .App file to SharePoint catalog.  problem is that .app file is same name and when i going to add,  it replace with same version witch deploy as live instance.
    Any one can give solution how to handle this greatly appreciated ...
    Kind Regards
    Radika

    Hi Radika,
    According to your description, there is already an app deployed in your site, you want to deploy another instance of it to the same site for testing purpose.
    As a common practice, when developing an app, for not overriding the previous version, it is recommended to create another project for testing used only with another
    name.
    By doing this, we can keep the development in the testing project, when it is done, migrate the newly customization to the original project and deploy it with a new
    version number.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Where should I put my extended unit test assemblies for Visual Studio 2013?

    Hi, I have a question about M/S Unit test extension.
    1. My purpose
    I'm trying to extend Visual Studio Unit Test.
    The points where I extends unit test is to output detail logs.
    My development environment is as follows.
    OS: Windows 8.1Pro (64bit version)
    IDE: Microsoft Visual Studio Professional 2013
      (Version 12.0.30723.00 Update 3)
    2. Things which I'd like to know
    To enable my test extension, it is required to put my test extension assemblies into designated sub folder under Visual Studio's installed folder.
    The source of this information is MS developers blog below.
    (http://blogs.msdn.com/b/vstsqualitytools/archive/2009/09/04/extending-the-visual-studio-unit-test-type-part-1.aspx)
    Q1. It's required to put the assemblies bellow.
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies
    Howerver, the guidance in the blog is for Visual Studio 2010.
    In Visual Studio2013, above "PrivateAssemblies" could not be found under "\Microsoft Visual Studio 12.0\Common7\IDE" folder.
    Where should I put my assemblies for my 2013. Is there any substitution for "\PrivateAssembly" folder?
    Q2. Another requirement is to set Assembly information entry into the registry below.
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\EnterpriseTools\QualityTools\TestTypes\{13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}\TestTypeExtensions
    For Visual Studio 2013, I could find almost the same node hierarchy, but
    could not find the last "TestTypeExtention" node. Instead,
    I could find "Extensions" node.
    Should I write registry entry here? Or, should I make a new "TestTypeExtension" node and write the entry there?
    Q3.Last question is more basic question.
    Is there any way to kick extended test program in Visual Studio 2013's Test Explore
    without registering my assemblies in the way recommended above.
    I think it's much tender for developer's in debugging phase. For example,
    it is very much helpful, if I could kick a unit test which uses my extended test class in the unit test extension solution.
    That's all. Any information concerning this topics will be appreciated.

    Hi TrailRunner-MF,
    One possible reason is that you didn't view the correct folder, for example, in my windows 8.1 64 bit, it is in the path: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE", not the "C:\Program Files\Microsoft Visual Studio
    12.0\Common7\IDE " folder.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit Tests VS 2013 - Manifest references file 'vstest.executionengine.appcontainer.exe' which is not part of the payload

    I am working on a Windows 8.1 Store App and I created Unit Tests. Last week everything worked out fine, but since a few days I am not able to build my Unit-Test-Projects.
    Every Unit-Test-Project has the following two errors:
    Manifest references file 'vstest.executionengine.appcontainer.exe' which is not part of the payload. [PathToTest].Logic.Tests\Package.appxmanifest
    Manifest references file 'vstest.executionengine.appcontainer.x86.exe' which is not part of the payload. [PathToTest].Logic.Tests\Package.appxmanifest
    I already tried to re-install VS 2013 with no success.
    Any ideas?

    Hi benschi1010,
    I am glad that you have solved the problem and thanks for your share us the solution here, so it would be helpful for other members who get the same issue.
    Best Regards, 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sharepoint 2013 setup for a test site

    In a sharepoint 2013 test site that I am using, I would like to be able to follow the section called 'deploy a workflow soltuion' that is located in the following url:
    http://msdn.microsoft.com/en-us/library/jj819316(v=office.15).aspx.
    When I look at the 'upload solution picture', I see the tabs for browse, solutions, and library. However when I look at my test sharepoint 2013 website, I see the tabs for browse and page. I do not see 'solutions' and 'library' tabs. Thus can you tell 
    me if my test sharepoint website is setup incorrectly or is this a permission is? Would you tell me what I can do to solve my issue?

    Hi Wendy,
    Do you have administrative rights on the site. Only site administrator can upload the solution to solution gallery and activate that solution.
    Best Regards,
    Brij K

  • SharePoint 2013 - March Public Update Issues

    In our test environment for SharePoint 2013, we installed the March 2013 PU for SharePoint.  The farm is small - a single WFE and one App server (housing Central Administration as well, both running Windows Server 2012).  The install of the patches
    succeeded fine on both servers.  Now, when I try to deploy the solution with the Products Configuration Wizard, it fails with the following logged in the PSCDiagnostics log:
    02/12/2014 14:18:53  8  ERR                Failed to initiate the upgrade sequence.
    An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown.  Additional exception information: Exception of type 'Microsoft.SharePoint.Upgrade.SPUpgradeException' was thrown.
    Microsoft.SharePoint.Upgrade.SPUpgradeException: Exception of type 'Microsoft.SharePoint.Upgrade.SPUpgradeException' was thrown.
       at Microsoft.SharePoint.Upgrade.SPManager.BootStrap(Guid sessionId, SPUpgradeOperationFlags flags)
       at Microsoft.SharePoint.PostSetupConfiguration.UpgradeBootstrapTask.Run()
       at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    I've been digging around online for the error and any related solutions.  One promising solution was that the farm account was locked.  I've dug through all the accounts used in AD for SharePoint and none are locked.
    Here's a section of the logs where the first error occurs:
    Entering function TaskDriver.FireOnTaskDriverEvent
    02/12/2014 14:18:53 8 INF Entering function UserInterface.TaskDriverEventHandler
    02/12/2014 14:18:53 8 INF Received a TaskDriverEventHandler: TaskDriverEventArgs.EventCriticalityType info, TaskDriverEventArgs.EventType stopping, message Successfully stopped the configuration of SharePoint Products.
    02/12/2014 14:18:53 8 INF Leaving function UserInterface.TaskDriverEventHandler
    02/12/2014 14:18:53 8 INF Entering function PsconfigBaseForm.TaskDriverEventHandler
    02/12/2014 14:18:53 8 INF Invoking the UI thread with the task driver event
    02/12/2014 14:18:53 1 INF Entering function ConfigurationProgressForm.InvokeTaskDriverEventHandler
    02/12/2014 14:18:53 1 INF Received a TaskDriverEventHandler: TaskDriverEventArgs.EventCriticalityType: info, TaskDriverEventArgs.EventMessageType: notapplicable, TaskDriverEventArgs.EventType stopping, message: Successfully stopped the configuration of SharePoint Products.
    02/12/2014 14:18:53 1 INF Received a non null event from the task driver
    02/12/2014 14:18:53 1 INF The UI has received a stopping event from the task driver
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 1 INF Leaving function ConfigurationProgressForm.InvokeTaskDriverEventHandler
    02/12/2014 14:18:53 8 INF The task driver event indiated that the task driver is stopping, so we will sleep an extra 1 ms so things don't go too fast for the user
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 8 INF Leaving function PsconfigBaseForm.TaskDriverEventHandler
    02/12/2014 14:18:53 8 INF Leaving function TaskDriver.FireOnTaskDriverEvent
    02/12/2014 14:18:53 8 INF Leaving function TaskDriver.OnTaskDriverStopping
    02/12/2014 14:18:53 8 INF Leaving function TaskDriver.ExecuteTasks
    02/12/2014 14:18:53 8 ERR One or more configuration tasks has failed to execute
    02/12/2014 14:18:53 8 INF Entering function TaskDriver.Stop
    02/12/2014 14:18:53 8 INF Entering function StringResourceManager.GetResourceString
    02/12/2014 14:18:53 8 INF Resource id to be retrieved is PostSetupConfigurationFailedEventLog for language English (United States)
    02/12/2014 14:18:53 8 INF Resource retrieved id PostSetupConfigurationFailedEventLog is Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at {0}, fix the problem, and run this configuration wizard again.
    02/12/2014 14:18:53 8 INF Leaving function StringResourceManager.GetResourceString
    02/12/2014 14:18:53 8 ERR Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\PSCDiagnostics_2_12_2014_14_17_34_955_1885083345.log, fix the problem, and run this configuration wizard again.
    02/12/2014 14:18:53 8 INF Entering function StringResourceManager.GetResourceString
    02/12/2014 14:18:53 8 INF Resource id to be retrieved is PostSetupConfigurationFailedUserMessage for language English (United States)
    02/12/2014 14:18:53 8 INF Resource retrieved id PostSetupConfigurationFailedUserMessage is Configuration of SharePoint Products failed. Configuration must be performed before you use SharePoint Products. For further details, see the diagnostic log located at {0} and the application event log.
    02/12/2014 14:18:53 8 INF Leaving function StringResourceManager.GetResourceString
    02/12/2014 14:18:53 1 INF Not running in high contrast, so we will paint the background with our trademarked image
    02/12/2014 14:18:53 8 INF Entering function TaskDriver.OnTaskDriverStop
    02/12/2014 14:18:53 8 INF Sending a task driver stop event: TaskDriverEventArgs.EventCriticalityType error, TaskDriverEventArgs.EventType.stop, Configuration of SharePoint Products failed. Configuration must be performed before you use SharePoint Products. For further details, see the diagnostic log located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\PSCDiagnostics_2_12_2014_14_17_34_955_1885083345.log and the application event log.
    02/12/2014 14:18:53 8 INF Entering function TaskDriverStateChange.Enter
    02/12/2014 14:18:53 8 INF Acquiring the writer lock to change the state
    02/12/2014 14:18:53 8 INF Current state of the task driver is neverrun. You want to change it to stoppedrunning
    02/12/2014 14:18:53 8 INF Changed state of the task driver to neverrun
    02/12/2014 14:18:53 8 INF Released the writer lock to change the state
    02/12/2014 14:18:53 8 INF Leaving function TaskDriverStateChange.Enter
    02/12/2014 14:18:53 8 INF Entering function TaskDriver.FireOnTaskDriverEvent
    02/12/2014 14:18:53 8 INF Entering function UserInterface.TaskDriverEventHandler
    02/12/2014 14:18:53 8 INF Received a TaskDriverEventHandler: TaskDriverEventArgs.EventCriticalityType error, TaskDriverEventArgs.EventType stop, message Configuration of SharePoint Products failed. Configuration must be performed before you use SharePoint Products. For further details, see the diagnostic log located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\PSCDiagnostics_2_12_2014_14_17_34_955_1885083345.log and the application event log.
    02/12/2014 14:18:53 8 INF Leaving function UserInterface.TaskDriverEventHandler
    I've also tried running the command line equivalent with the same results.
    Any suggestions on hunting the problem down? We're fairly new to SharePoint and stuck right now.
    Thanks
    jason

    Trevor,
    Thanks for the tip.  Still getting used to SharePoint here.
    Looking at the entire psconfigui.exe processes in the log, I see a handful of "Unexpected" events.  This is a group of three in a row that stuck out to me:
    02/12/2014 14:18:08.17 psconfigui (0x1B2C) 0x1C80 SharePoint Foundation Upgrade SPUpgradeSession ajxme ERROR CanUpgrade [SPConfigurationDatabase] failed. 00000000-0000-0000-0000-000000000000
    02/12/2014 14:18:08.17 psconfigui (0x1B2C) 0x1C80 SharePoint Foundation Upgrade SPUpgradeSession ajxme ERROR Exception: Failed to call GetTypes on assembly Microsoft.Office.TranslationServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
    Method not found: 'Microsoft.Office.Web.Common.ProcessImageInfo Microsoft.Office.Web.Common.EnvironmentAdapters.IImagingAdapter.ProcessImage(System.IO.Stream, Double, Double)'. 00000000-0000-0000-0000-000000000000
    02/12/2014 14:18:08.17 psconfigui (0x1B2C) 0x1C80 SharePoint Foundation Upgrade SPUpgradeSession ajxme ERROR    at Microsoft.SharePoint.Upgrade.SPDelegateManager.RegisterAssembly(Dictionary`2 dictInitialType, Assembly asm, UInt32 nOrder)  
      at Microsoft.SharePoint.Upgrade.SPDelegateManager.get_InitialTypeDictionary()     at Microsoft.SharePoint.Upgrade.SPDelegateManager.GetDelegateTypes(Type tpObject)     at Microsoft.SharePoint.Upgrade.SPDelegateManager.GetDelegates(Object
    o)     at Microsoft.SharePoint.Upgrade.SPDelegateManager.GetUpgraders(Object o)     at Microsoft.SharePoint.Upgrade.SPUpgradeSession.CanUpgrade(Object o) 00000000-0000-0000-0000-000000000000
    Checking the second entry, I found the following thread - http://goo.gl/Yskd5H.
    Going to try a repair and re-grab the update and re-run it.

  • SharePoint 2013 + SQL Server 2008 vs 2012

    I am trying to determine the best course of action when building a new SharePoint 2013 Enterprise Farm. Should we use SQL Server 2008 R2 or SQL Server 2012? I have found some information online, but I wanted to know if there were more pros and cons to SQL
    2012 over 2008. Can anyone tell me if my short list is adequate enough? Also, are there any integration concerns with other applications that I may need to look out for by using SQL 2012 that don't exist in SQL 2008?
    The list of benefits of SQL 2012 over SQL 2008 I know of include:
    AlwaysOn
    Read-Only Secondary
    Contained Database
    ColumnStore Indexes
    Shredded Storage
    PowerPivot BI
    Reporting Services BI
    Are there any negatives to using SQL 2012?
    Thanks,
    Alex

    Alex,
    The only negatives I have seen are 
    1. You must be careful that the AOAG configuration is supported. For many cases like the config DB, Async mode is not supported for DR.
    2. Microsoft has not published their support stance for Many DBs yet.
    So for example for "App Management Service Application" DB or "Secure Store" DB Microsoft says 
    To be determined. Currently not supported because testing is not finished.
    For a complete list look here
    http://technet.microsoft.com/en-us/library/jj841106.aspx
    So although AOAG is a great option technically (and perhaps in the long run the strategic option) I would like Microsoft to complete their testing. (unless one is ready to take risk and go where MS itself hasn't gone)
    val it: unit=()

  • Can Double Byte Codes be used in SharePoint 2013?

    Hello,
    I am looking to create a SharePoint but for Japanese users.  I understand that Double Byte Codes will need to be used when entering information due to the Japanese language.  I have been informed that this can sometimes cause an issue with SharePoint.
    I am looking to test this however I wanted to understand if this can be done / are there any considerations when using DBC's on SharePoint etc and any limitations.
    Any assistance would be greatly appreciated.
    Thanks
    KP

    Hi KP,
    Yes, SharePoint 2013 supports Double Byte Unicode characters:
    If you have non-standard ASCII characters, such as high-ASCII or double-byte Unicode characters, in the SharePoint URL, each of those characters is URL-encoded into two or more ASCII characters when they are passed to the Web browser. Thus, a URL with many
    high-ASCII characters or double-byte Unicode characters can become longer than the original un-encoded URL. The list below gives examples of the multiplication factors:
    High-ASCII characters — for example, (!, ", #, $, %, &, [Space]): multiplication factor = 3
    Double byte Unicode characters — for example, Japanese, Chinese, Korean, Hindi: multiplication factor = 9
    For example, when you translate the names of sites, library, folder, and file in the URL path http://www.contoso.com/sites/marketing/documents/Shared%20Documents/Promotion/Some%20File.xlsx into Japanese, the resulted encoded URL path will become something
    like the following:
    http://www.contoso.com/sites/%E3%83%9E%E3%83%BC%E3%82%B1%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0/%E6%96%87%E6%9B%B8/DocLib/%E3%83%97%E3%83%AD%E3%83%A2%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB.xlsx. This path is 224 characters,
    whereas the original URL path is only 94 characters.
    In most cases, one UTF-16 character equals one UTF-16 code unit. However, characters that use Unicode code points greater than U+10000 will equal two UTF-16 code units. These characters include, but are not limited to, Japanese or Chinese surrogate pair
    characters. If your paths include these characters, the URL length will exceed the URL length limitation with fewer than 256 or 260 characters.
    Reference:
    https://technet.microsoft.com/en-us/library/ff919564%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Unit Testing, Null, and Warnings

    I have a Unit Test that includes the following lines:
    Dim nullarray As Integer()()
    Assert.AreEqual(nullarray.ToString(False), "Nothing")
    The variable "nullarray" will obviously be null when ToString is called (ToString is an extension method, which is the one I am testing). This is by design, because the purpose of this specific unit test is to make sure that my ToString extension
    method handles null values the way I expect. The test runs fine, but Visual Studio 2013 gives includes the following warning:
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    This warning is to be expected, and I don't want to stop Visual Studio 2013 from showing this warning or any other warnings, just this specific case (and several others that involve similar scenarios). Is there any way to mark a line or segment
    of code so that it is not checked for warnings? Otherwise, I will end up with lots of warnings for things that I am perfectly aware of and don't plan on changing.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    Hi Nathan Sokalski,
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    Whether the warning above was thrown when you built the test project but the test run successfully? I assume Yes.
    Is there any way to mark a line or segment of code so that it is not checked for warnings?
    There is no built-in way to make some code snippet or a code line not be checked during compiling, but we can configure some specific warnings not to be warned during compiling in Visual Basic through project Properties->Compile
    tab->warning configurations box.
    For detailed information, please see: Configuring Warnings in Visual Basic
    Another way is to correct your code logic and make sure the code will not generate warning at runtime.
    If I misunderstood you, please tell us what code you want it not to be checked for warnings with a sample so that we can further look at your issue.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Getting Error while creating a new column in a list or library in a site collection - Sharepoint 2013

    Hi,
    I am getting below error when i create a new column in a library or list,
    "Save Conflict
    Your changes conflict with those made concurrently by  another user. IF you want your changes to be applied, click back in your browser, refresh the page, and resubmit your changes"
    Any help please.
    Smile Always

    Hi,
    I have done a test in my SharePoint 2013. And I can re-appear your issue.
    Per my test, I found that If  there are more than one user create a new column in
    a library or list at the same time, when we
    click ok after the other users, we will get the error.
    Or if we open a library or list in two windows with the same user, when we
    create a new column in a library or list in two windows
    at the same time, we will get the error.
    To resolve your issue, refresh your page and
    create a new column again.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Unit testing - problems using £ sign

    Sorry if this has come up before...
    We're using the SQL Developer unit testing functionality in what we thought was a fairly straightforward manner.
    We use a startup to set up some data, run a procedure with specific values for the inputs, compare the outputs with expected values, and then use a teardown to remove the data.
    All works well except for one output field. For reasons I won't bother to go into, it's a varchar2 field that returns an amount, in the format £9.99 - i.e. with a UK pound (£) sign at the start of the string.
    Whenever I try and input an expected value including the pound sign, the whole value gets converted to null - so, £9.50 gets saved as an expected value of null, which then, of course, causes the test to fail (unless we set it to ignore the value which somewhat defeats the point of testing !)
    Playing around a little, it seems that characters such as $ and # are ok, but any string that uses £ anywhere within it (e.g. 876f£ffe) gets saved as null.
    Has anyone else encountered this or have a workaround/fix ?
    (SQL Developer version 3.2.20.09, running on Windows XP 32-bit)

    Have you tried opening a new browser window as the new user? That is:
    1. Hold Shift and right click IE shortcut
    2. Select Run as different user
    3. Enter the new user's credentials
    4. Browse to the SharePoint site
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

Maybe you are looking for