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