mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Test using Rust instead of Gmod (uses more features)
This commit is contained in:
parent
11b7fde17d
commit
194ca8d8b3
@ -17,19 +17,19 @@ namespace Steamworks
|
||||
//
|
||||
// Init Client
|
||||
//
|
||||
Steamworks.SteamClient.Init( 4000 );
|
||||
Steamworks.SteamClient.Init( 252490 );
|
||||
|
||||
//
|
||||
// Init Server
|
||||
//
|
||||
var serverInit = new SteamServerInit( "gmod", "Garry Mode" )
|
||||
var serverInit = new SteamServerInit( "rust", "Rusty Mode" )
|
||||
{
|
||||
GamePort = 28015,
|
||||
Secure = true,
|
||||
QueryPort = 28016
|
||||
};
|
||||
|
||||
Steamworks.SteamServer.Init( 4000, serverInit );
|
||||
Steamworks.SteamServer.Init( 252490, serverInit );
|
||||
|
||||
SteamServer.LogOnAnonymous();
|
||||
|
||||
@ -53,7 +53,7 @@ namespace Steamworks
|
||||
[TestMethod]
|
||||
public void AppInstallDir()
|
||||
{
|
||||
var str = SteamApps.AppInstallDir( 4000 );
|
||||
var str = SteamApps.AppInstallDir();
|
||||
Assert.IsNotNull( str );
|
||||
Assert.IsTrue( str.Length > 3 );
|
||||
|
||||
@ -73,7 +73,7 @@ namespace Steamworks
|
||||
[TestMethod]
|
||||
public void InstalledDepots()
|
||||
{
|
||||
var depots = SteamApps.InstalledDepots( 4000 ).ToArray();
|
||||
var depots = SteamApps.InstalledDepots().ToArray();
|
||||
|
||||
Assert.IsNotNull( depots );
|
||||
Assert.IsTrue( depots.Length > 0 );
|
||||
|
@ -91,6 +91,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="FriendsTest.cs" />
|
||||
<Compile Include="RemoteStorageTest.cs" />
|
||||
<Compile Include="InventoryTest.cs" />
|
||||
<Compile Include="UgcTest.cs" />
|
||||
<Compile Include="UgcEditor.cs" />
|
||||
<Compile Include="UserTest.cs" />
|
||||
|
@ -10,7 +10,6 @@ namespace Steamworks
|
||||
{
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class UserStatsTest
|
||||
{
|
||||
[TestMethod]
|
||||
|
Loading…
x
Reference in New Issue
Block a user