約81,900件1ページ目

2015/2/1 -You can write async void unit tests in NUnit 2.6. It also works for delegates passed to Assert.Throws, which can have an async modified.

2024/2/11 -NUnit 3.x の非同期テストメソッドは、値が返されない場合は Task を返すか、 T 型の値が返される場合は Task<T> を返さなければなりません。

2024/2/11 -Async test methods in NUnit 3.x must return either Task if no value is returned, or Task<T> if a value of type T is returned.

2012/8/30 -The best option I can see right now is to use Visual Studio's own UnitTesting framework or xUnit.net as both support asynchronous tests.

2015/7/27 -1 つは、非同期メソッドの結果をテストする際に重要なのは、メソッドから返される Task だということです。async メソッドは、完了、結果、および例外を ...

The Test attribute is one way of marking a method inside a TestFixture class as a test. It is normally used for simple (non-parameterized) tests.

2017/4/13 -Hi, I'm not sure whether an issue with NUnit but the following test will always result in a deadlock: [Test] public async Task Deadlock() ...

Async code is run on the main thread and Unity Test Framework will await it by checking if the task is done on each update for Play Mode.

In the above code AsyncTestDelegate is a delegate of the form Task AsyncTestDelegate(), which is used to execute the code in question. This will likely be a ...

2023/10/27 -I have the following problem where the async Setup method for an NUnit test does not get to complete before the actual test method is run.