Facepunch.Steamworks/Facepunch.Steamworks.Test/Client.cs
2016-07-07 12:09:03 +01:00

32 lines
805 B
C#

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Facepunch.Steamworks.Test
{
[TestClass]
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( "steam_appid.txt" )]
public class Client
{
[TestMethod]
public void ClientInit()
{
using ( var client = new Facepunch.Steamworks.Client( 252490 ) )
{
Assert.IsTrue( client.Valid );
}
}
[TestMethod]
public void ClientName()
{
using ( var client = new Facepunch.Steamworks.Client( 252490 ) )
{
var username = client.Username;
Console.WriteLine( username );
Assert.IsTrue( client.Valid );
}
}
}
}