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(); } }
public void SetUp() { ScalarPlatform.Register(new MockPlatform()); }