mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-05 23:52:00 +01:00
What's an open source project that cannot be tested in an open source platform? The best open source .NET IDE that works in Linux (MonoDevelop) doesn't have support for VisualStudio Testing framework, but it has support for NUnit. By abstracting a bit the TLSharp.Tests assembly we can have two different wrappers, one for NUnit tests and other for VisualStudio tests, so no one can be left behind.
73 lines
1.6 KiB
C#
73 lines
1.6 KiB
C#
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
using NUnit.Framework;
|
|
|
|
namespace TLSharp.Tests
|
|
{
|
|
[TestFixture]
|
|
public class TLSharpTestsNUnit : TLSharpTests
|
|
{
|
|
[TestFixtureSetUp]
|
|
public void Init()
|
|
{
|
|
base.Init(o => Assert.IsNotNull(o), b => Assert.IsTrue(b));
|
|
}
|
|
|
|
[Test]
|
|
public async override Task AuthUser()
|
|
{
|
|
await base.AuthUser();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task SendMessageTest()
|
|
{
|
|
await base.SendMessageTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task SendMessageToChannelTest()
|
|
{
|
|
await base.SendMessageToChannelTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task SendPhotoToContactTest()
|
|
{
|
|
await base.SendPhotoToContactTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task SendBigFileToContactTest()
|
|
{
|
|
await base.SendBigFileToContactTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task DownloadFileFromContactTest()
|
|
{
|
|
await base.DownloadFileFromContactTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task DownloadFileFromWrongLocationTest()
|
|
{
|
|
await base.DownloadFileFromWrongLocationTest();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task SignUpNewUser()
|
|
{
|
|
await base.SignUpNewUser();
|
|
}
|
|
|
|
[Test]
|
|
public override async Task CheckPhones()
|
|
{
|
|
await base.CheckPhones();
|
|
}
|
|
}
|
|
}
|