mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-26 13:38:06 +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
|
// Init Client
|
||||||
//
|
//
|
||||||
Steamworks.SteamClient.Init( 4000 );
|
Steamworks.SteamClient.Init( 252490 );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init Server
|
// Init Server
|
||||||
//
|
//
|
||||||
var serverInit = new SteamServerInit( "gmod", "Garry Mode" )
|
var serverInit = new SteamServerInit( "rust", "Rusty Mode" )
|
||||||
{
|
{
|
||||||
GamePort = 28015,
|
GamePort = 28015,
|
||||||
Secure = true,
|
Secure = true,
|
||||||
QueryPort = 28016
|
QueryPort = 28016
|
||||||
};
|
};
|
||||||
|
|
||||||
Steamworks.SteamServer.Init( 4000, serverInit );
|
Steamworks.SteamServer.Init( 252490, serverInit );
|
||||||
|
|
||||||
SteamServer.LogOnAnonymous();
|
SteamServer.LogOnAnonymous();
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ namespace Steamworks
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void AppInstallDir()
|
public void AppInstallDir()
|
||||||
{
|
{
|
||||||
var str = SteamApps.AppInstallDir( 4000 );
|
var str = SteamApps.AppInstallDir();
|
||||||
Assert.IsNotNull( str );
|
Assert.IsNotNull( str );
|
||||||
Assert.IsTrue( str.Length > 3 );
|
Assert.IsTrue( str.Length > 3 );
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ namespace Steamworks
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void InstalledDepots()
|
public void InstalledDepots()
|
||||||
{
|
{
|
||||||
var depots = SteamApps.InstalledDepots( 4000 ).ToArray();
|
var depots = SteamApps.InstalledDepots().ToArray();
|
||||||
|
|
||||||
Assert.IsNotNull( depots );
|
Assert.IsNotNull( depots );
|
||||||
Assert.IsTrue( depots.Length > 0 );
|
Assert.IsTrue( depots.Length > 0 );
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="FriendsTest.cs" />
|
<Compile Include="FriendsTest.cs" />
|
||||||
<Compile Include="RemoteStorageTest.cs" />
|
<Compile Include="RemoteStorageTest.cs" />
|
||||||
|
<Compile Include="InventoryTest.cs" />
|
||||||
<Compile Include="UgcTest.cs" />
|
<Compile Include="UgcTest.cs" />
|
||||||
<Compile Include="UgcEditor.cs" />
|
<Compile Include="UgcEditor.cs" />
|
||||||
<Compile Include="UserTest.cs" />
|
<Compile Include="UserTest.cs" />
|
||||||
|
@ -10,7 +10,6 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class UserStatsTest
|
public class UserStatsTest
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user