Esempio n. 1
0
 public static void Initialize()
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         ScalarPlatform.Register(new WindowsPlatform());
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
     {
         ScalarPlatform.Register(new MacPlatform());
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Esempio n. 2
0
 public void SetUp()
 {
     ScalarPlatform.Register(new MockPlatform());
 }