mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-30 18:22:41 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			768 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			768 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Diagnostics.CodeAnalysis;
 | |
| using System.Threading.Tasks;
 | |
| using Kyoo.Models;
 | |
| using Xunit;
 | |
| using Xunit.Abstractions;
 | |
| 
 | |
| namespace Kyoo.Tests.Library
 | |
| {
 | |
| 	public class GlobalTests : IDisposable, IAsyncDisposable
 | |
| 	{
 | |
| 		private readonly RepositoryActivator _repositories;
 | |
| 		
 | |
| 		public GlobalTests(ITestOutputHelper output)
 | |
| 		{
 | |
| 			 _repositories = new RepositoryActivator(output);
 | |
| 		}
 | |
| 
 | |
| 		[Fact]
 | |
| 		[SuppressMessage("ReSharper", "EqualExpressionComparison")]
 | |
| 		public void SampleTest()
 | |
| 		{
 | |
| 			Assert.False(ReferenceEquals(TestSample.Get<Show>(), TestSample.Get<Show>()));
 | |
| 		}
 | |
| 		
 | |
| 		public void Dispose()
 | |
| 		{
 | |
| 			_repositories.Dispose();
 | |
| 			GC.SuppressFinalize(this);
 | |
| 		}
 | |
| 
 | |
| 		public ValueTask DisposeAsync()
 | |
| 		{
 | |
| 			return _repositories.DisposeAsync();
 | |
| 		}
 | |
| 	}
 | |
| } |