More than a question, this is an attempt to compare notes with other people. I wrote a generic History class that emulates browser history functionality. I'm trying to think about how far I can go when writing unit tests for this. I'm using NUnit. Please share your testing approaches below.
The full code for the History class is here ( http://pastebin.com/ZGKK2V84 ).
Although this question is a bit vague, in general, with such a class, I would suggest testing the following, at a minimum:
, , - ? :)
T , int, History<int>, . . , , , . :) , , .
T
int
History<int>
Write a generic test class that reflects a generic class. Then create another test class that creates an instance of this test class with several different type arguments (a value type and a reference type of some kind are a good start).
Source: https://habr.com/ru/post/1749771/More articles:UIWebView whistles with difficulty - objective-cGPL and Hosted Services - licensingHow to quickly, smoothly scroll using UIWebView? - iphoneРеализация CATiledLayer в UIWebView для быстрой прокрутки - iphoneNSEntityDescription entityForName returns zero - iosПолучение Gowalla История регистрации с использованием API - apiIs there a better way to select tables based on how many rows they have through jQuery? - javascriptis there any way to provide a 30 second limit on the local devengine server? - pythonPHP - PRE-select drop down option - phpThe Qt4 book says: “Make a release,” reality disagrees - debuggingAll Articles