private void CheckOSPlatforms( OSPlatform os, 
			string expectedPlatforms )
		{
			CheckPlatforms(
				new PlatformHelper( os, RuntimeFramework.CurrentFramework ),
				expectedPlatforms,
				PlatformHelper.OSPlatforms );
		}
示例#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 );
        }
示例#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);
        }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }