mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
- Added Sandbox.Test.Unit project (contains independent tests that can run in parallel) - Modify some slow/stress tests (e.g. instead of doing a million iterations settle for 10k). Tests run almost twice as fast now.
20 lines
371 B
C#
20 lines
371 B
C#
using NativeEngine;
|
|
using Steamworks.Data;
|
|
|
|
namespace Engine;
|
|
|
|
[TestClass]
|
|
public class SteamServerTest
|
|
{
|
|
[TestMethod]
|
|
public void CreateServerAndShutdown()
|
|
{
|
|
Steam.SteamGameServer_Init( 27015, Defines.STEAMGAMESERVER_QUERY_PORT_SHARED, "1.0.0.0" );
|
|
|
|
var sgs = Steam.SteamGameServer();
|
|
sgs.SetMapName( "gm_construct" );
|
|
|
|
Steam.SteamGameServer_Shutdown();
|
|
}
|
|
}
|