mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 07:08:05 +03:00
Tweaked DownloadFile test
This commit is contained in:
parent
f048730edd
commit
1aeeb6b932
@ -320,20 +320,7 @@ namespace Facepunch.Steamworks.Test
|
|||||||
{
|
{
|
||||||
Assert.IsTrue( client.IsValid );
|
Assert.IsTrue( client.IsValid );
|
||||||
|
|
||||||
using ( var Query = client.Workshop.CreateQuery() )
|
var item = client.Workshop.GetItem( 661319648);
|
||||||
{
|
|
||||||
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];
|
|
||||||
|
|
||||||
if ( !item.Installed )
|
if ( !item.Installed )
|
||||||
{
|
{
|
||||||
@ -355,8 +342,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
Console.WriteLine( "item.DownloadPending: {0}", item.DownloadPending );
|
Console.WriteLine( "item.DownloadPending: {0}", item.DownloadPending );
|
||||||
Console.WriteLine( "item.Directory: {0}", item.Directory );
|
Console.WriteLine( "item.Directory: {0}", item.Directory );
|
||||||
Console.WriteLine( "item.Size: {0}mb", (item.Size / 1024 / 1024) );
|
Console.WriteLine( "item.Size: {0}mb", (item.Size / 1024 / 1024) );
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,7 +371,7 @@ namespace Facepunch.Steamworks.Test
|
|||||||
|
|
||||||
Assert.IsFalse( item.Publishing );
|
Assert.IsFalse( item.Publishing );
|
||||||
Assert.AreNotEqual( 0, item.Id );
|
Assert.AreNotEqual( 0, item.Id );
|
||||||
Assert.IsNull( item.Error );
|
Assert.IsNull( item.Error, item.Error );
|
||||||
|
|
||||||
Console.WriteLine( "item.Id: {0}", item.Id );
|
Console.WriteLine( "item.Id: {0}", item.Id );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user