mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Tweaked DownloadFile test
This commit is contained in:
parent
f048730edd
commit
1aeeb6b932
@ -320,20 +320,7 @@ public void DownloadFile()
|
||||
{
|
||||
Assert.IsTrue( client.IsValid );
|
||||
|
||||
using ( var Query = client.Workshop.CreateQuery() )
|
||||
{
|
||||
Query.FileId.Add( 661319648 );
|
||||
Query.Run();
|
||||
|
||||
Assert.IsTrue( Query.IsRunning );
|
||||
|
||||
Query.Block();
|
||||
|
||||
Assert.IsFalse( Query.IsRunning );
|
||||
Assert.AreEqual( Query.TotalResults, 1 );
|
||||
Assert.AreEqual( Query.Items.Length, 1 );
|
||||
|
||||
var item = Query.Items[0];
|
||||
var item = client.Workshop.GetItem( 661319648);
|
||||
|
||||
if ( !item.Installed )
|
||||
{
|
||||
@ -355,8 +342,6 @@ public void DownloadFile()
|
||||
Console.WriteLine( "item.DownloadPending: {0}", item.DownloadPending );
|
||||
Console.WriteLine( "item.Directory: {0}", item.Directory );
|
||||
Console.WriteLine( "item.Size: {0}mb", (item.Size / 1024 / 1024) );
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -386,7 +371,7 @@ public void CreatePublish()
|
||||
|
||||
Assert.IsFalse( item.Publishing );
|
||||
Assert.AreNotEqual( 0, item.Id );
|
||||
Assert.IsNull( item.Error );
|
||||
Assert.IsNull( item.Error, item.Error );
|
||||
|
||||
Console.WriteLine( "item.Id: {0}", item.Id );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user