예제 #1
0
		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;
 }
예제 #6
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;
 }
예제 #7
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;
 }
예제 #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;
 }