private void CheckOSPlatforms( OSPlatform os, 
			string expectedPlatforms )
		{
			CheckPlatforms(
				new PlatformHelper( os, RuntimeFramework.CurrentFramework ),
				expectedPlatforms,
				PlatformHelper.OSPlatforms );
		}
Example #2
0
        private void CheckOSPlatforms( OSPlatform os, 
            string expectedPlatforms )
        {
            Assert.That(expectedPlatforms, Is.SubsetOf(PlatformHelper.OSPlatforms).IgnoreCase, 
                "Error in test: one or more expected platforms is not a valid OSPlatform.");

            CheckPlatforms(
                new PlatformHelper( os, RuntimeFramework.CurrentFramework ),
                expectedPlatforms,
                PlatformHelper.OSPlatforms );
        }
Example #3
0
        private void CheckOSPlatforms(OSPlatform os,
                                      string expectedPlatforms)
        {
            Assert.That(expectedPlatforms, Is.SubsetOf(PlatformHelper.OSPlatforms).IgnoreCase,
                        "Error in test: one or more expected platforms is not a valid OSPlatform.");

            CheckPlatforms(
                new PlatformHelper(os, RuntimeFramework.CurrentFramework),
                expectedPlatforms,
                PlatformHelper.OSPlatforms);
        }
Example #4
0
 /// <summary>
 /// Construct a PlatformHelper for a particular operating
 /// system and common language runtime. Used in testing.
 /// </summary>
 /// <param name="rt">RuntimeFramework to be used</param>
 /// <param name="os">OperatingSystem to be used</param>
 public PlatformHelper(OSPlatform os, RuntimeFramework rt)
 {
     _os = os;
     _rt = rt;
 }
Example #5
0
 /// <summary>
 /// Default constructor uses the operating system and
 /// common language runtime of the system.
 /// </summary>
 public PlatformHelper()
 {
     _os = OSPlatform.CurrentPlatform;
     _rt = RuntimeFramework.CurrentFramework;
 }
 /// <summary>
 /// Contruct a PlatformHelper for a particular operating
 /// system and common language runtime. Used in testing.
 /// </summary>
 /// <param name="os">OperatingSystem to be used</param>
 /// <param name="rt">RuntimeFramework to be used</param>
 public PlatformHelper( OSPlatform os, RuntimeFramework rt )
 {
     this.os = os;
     this.rt = rt;
 }
 /// <summary>
 /// Default constructor uses the operating system and
 /// common language runtime of the system.
 /// </summary>
 public PlatformHelper()
 {
     this.os = OSPlatform.CurrentPlatform;
     this.rt = RuntimeFramework.CurrentFramework;
 }
Example #8
0
 /// <summary>
 /// Contruct a PlatformHelper for a particular operating
 /// system and common language runtime. Used in testing.
 /// </summary>
 /// <param name="os">OperatingSystem to be used</param>
 /// <param name="rt">RuntimeFramework to be used</param>
 public PlatformHelper(OSPlatform os, RuntimeFramework rt)
 {
     this.os = os;
     this.rt = rt;
 }
Example #9
0
 /// <summary>
 /// Default constructor uses the operating system and
 /// common language runtime of the system.
 /// </summary>
 public PlatformHelper()
 {
     this.os = OSPlatform.CurrentPlatform;
     this.rt = RuntimeFramework.CurrentFramework;
 }
Example #10
0
 /// <summary>
 /// Construct a PlatformHelper for a particular operating
 /// system and common language runtime. Used in testing.
 /// </summary>
 /// <param name="os">OperatingSystem to be used</param>
 /// <param name="rt">RuntimeFramework to be used</param>
 public PlatformHelper( OSPlatform os, RuntimeFramework rt )
 {
     _os = os;
     _rt = rt;
 }
Example #11
0
 /// <summary>
 /// Default constructor uses the operating system and
 /// common language runtime of the system.
 /// </summary>
 public PlatformHelper()
 {
     _os = OSPlatform.CurrentPlatform;
     _rt = RuntimeFramework.CurrentFramework;
 }