mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-07-31 07:48:52 -04:00
* Move all unit tests to Engine/Tests * Fix Margin.EdgeSubtract * Fix Capsule.Contains * EnvironmentVariables.Remove if it's null * Fixed ray trace never returning startedsolid * Fix HistoryList.Navigate on empty list * Fix GameObject.WorldPosition accepting NaNs * Fix flex: initial expanding to the wrong grow/shrink * Translation.TryConvert shouldn't throw on invalid enum strings * Skip sound file tests on machines with no audio device
22 lines
501 B
C#
22 lines
501 B
C#
using NativeEngine;
|
|
using Steamworks.Data;
|
|
|
|
namespace EngineTests;
|
|
|
|
[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();
|
|
Assert.IsTrue( sgs.IsValid, "SteamGameServer interface is null after init - Steam redistributables may not be present" );
|
|
|
|
sgs.SetMapName( "gm_construct" );
|
|
|
|
Steam.SteamGameServer_Shutdown();
|
|
}
|
|
}
|