Граф коммитов

121 Коммитов

Автор SHA1 Сообщение Дата
Mihail Vladov e72b7345c2 Changing the notice Telerik AD to Telerik EAD in JustMock Lite. 2018-05-04 15:20:33 +03:00
Lyubomir Rusev 64e1a258df Fix AssertionFixture.cs test to work with NUnit versions before 3. Also add project level NUNIT3 define when working with versions later than 3. 2018-03-13 11:45:36 +02:00
Lyubomir Rusev 8cfd4c00fc Reduce code duplication between EventsFixture shared tests and the one that is specific only to NUnit framework. 2018-03-12 14:47:45 +02:00
Lyubomir Rusev 076ca6a89f Move NUnit specific test from the Shared test project to NUnit test project. 2018-03-12 11:40:06 +02:00
Lyubomir Rusev f45b3459fb Insert Just Mock test attribute aliases for Coverage .tt and .cs files. 2018-03-12 11:04:18 +02:00
Lyubomir Rusev b19616e297 Move Assert.cs to Telerik.JustMock.Tests.Base project.
Fix XUnit test project setup.
2018-03-09 16:38:55 +02:00
Lyubomir Rusev fb7fb9c4e6 Extend Just Mock assert wrapper to handle XUnit Assertions. 2018-03-09 15:50:26 +02:00
Lyubomir Rusev fd423a13b1 Remove NUNIT exclusive compilation for several tests. 2018-03-09 15:09:49 +02:00
Lyubomir Rusev 0e91b57469 Add XUnit specific code similar to MSTest [TestInitialize] 2018-03-09 14:58:18 +02:00
Lyubomir Rusev eb2f0abd9c Add fix related to commit 1f5697ba21 2018-03-09 13:56:48 +02:00
Lyubomir Rusev 1f5697ba21 Rename Assert.Equals to Assert.Equal because of the following error from XUnit test project:
Error	CS0619	'Assert.Equals(object, object)' is obsolete: 'This is an override of Object.Equals(). Call Assert.Equal() instead.'
2018-03-08 16:36:53 +02:00
Lyubomir Rusev cedcba1975 Fix Just mock aliases in test files. 2018-03-08 16:24:55 +02:00
Lyubomir Rusev f1302fed36 Replace MS Test specific AssertFailedException with AssertionException which aliases unit test platform specific assertion exception. 2018-03-07 22:22:01 +02:00
Lyubomir Rusev ccf23ad5c5 Prepare Assert.cs to have proper FrameworkAssert for different testing frameworks. 2018-03-07 22:16:53 +02:00
Lyubomir Rusev f25cb349ef Add attribute aliases code snippet to every source file that contains unit tests. 2018-03-07 22:15:48 +02:00
Lyubomir Rusev 3d61fa988c Fix AssertionFixture.cs namespace. 2018-03-07 21:06:33 +02:00
Lyubomir Rusev 665ff0cecc Besides different namespaces, the Ms Test 2 version used spaces instead of tabs. 2018-03-07 21:04:24 +02:00
Lyubomir Rusev d730103beb The difference between Ms Test 1/2 versions of the file is that on line 362 we have the following:
private static IEnumerable<TestCaseData> DummyTestCaseSource

The static keyword was removed in MsTest 2 version, but it seems more convenient to have it and also this is the approach used inside NUnit documentation examples.
2018-03-07 21:00:36 +02:00
Lyubomir Rusev 520ee7c162 There were some non-trivial differences between the MS Test 1/2 versions of the File.
In Ms Test on line 1090 inside DebugViewTests there was:

#if NUNIT3
[OneTimeSetUp]
#else
[SetUp]
#endif

The above #if-def was applied both on AssemblyInit() and AssemblyUninit() which seems to be incorrect.

In Ms Test 2 version on line 1089 the methods are decorated with [SetUp] and [TearDown] respectively.

However it may be more convenient to use [OneTimeSetUp] and [OneTimeTearDown] if we assume NUnit version later than 3.0
2018-03-07 20:43:59 +02:00
Lyubomir Rusev 995c252511 Leave only one copy of Coverage sources. 2018-03-07 18:19:34 +02:00
Lyubomir Rusev 7d0bfee98a Initially leave only one copy of test files that differ only on namespace. 2018-03-07 14:24:27 +02:00
Lyubomir Rusev 09505a1141 Rename JustMock test project that uses Ms Test and add new shared project that will hold shared test files. 2018-03-07 11:03:03 +02:00
Kamen Ivanov 763f1eed86 add Nunit3 tests to InternalsVisibleTo for DemoLib 2017-07-17 15:54:54 +03:00
Stefan Dragnev 77df00c14a fix comparison of constant lambda expressions 2016-01-15 11:31:43 +02:00
Stefan Dragnev fa9f92dc3b fix test 2016-01-07 10:16:16 +02:00
Stefan Dragnev 67bcffab06 fix InOrder clauses spanning multiple test methods 2016-01-07 09:48:21 +02:00
Stefan Dragnev 7709c572c7 fix test 2016-01-05 16:48:47 +02:00
Stefan Dragnev b7a437c4bc fix: NonPublic API can't find methods with generic return type 2016-01-05 16:04:04 +02:00
Stefan Dragnev efeb455d46 fix: InOrder() on a mock-less arrangement throws. 2016-01-05 14:14:40 +02:00
Stefan Dragnev 2ef85fc135 prevent users from inadvertently calling one test method from another 2016-01-05 14:10:22 +02:00
Stefan Dragnev 1e6ba2f8d5 improve strict mock violation message 2016-01-05 10:43:23 +02:00
Stefan Dragnev 4ea245d310 feature: remove arrangements using Dispose() 2015-09-03 15:43:40 +03:00
Stefan Dragnev 23e64f20bf fix: transparent proxies not considered self-equal 2015-09-03 15:17:38 +03:00
Stefan Dragnev de6f7bfbf6 Merge branch 'sd/private-generic' 2015-08-12 18:37:16 +03:00
Stefan Dragnev 3c7746ca42 fix Silverlight build 2015-08-12 17:39:18 +03:00
Stefan Dragnev 10471f3e65 PrivateAccessor and DynaMock support for generic methods 2015-08-11 17:02:36 +03:00
Stefan Dragnev f2f077999f add a message parameter to assertions and expectations 2015-08-11 15:45:27 +03:00
Stefan Dragnev dd54c8513a fix test that fails when the profiler is enabled 2015-07-22 18:10:19 +03:00
Stefan Dragnev 1e0d9f4408 fix silverlight test 2015-07-22 18:00:43 +03:00
Stefan Dragnev 1f4bb8496e make Mock.Create reentrant 2015-07-22 17:08:42 +03:00
Stefan Dragnev 1c84e6fa10 fix android test 2015-07-22 16:19:54 +03:00
Stefan Dragnev c602333b2c Merge branch 'arrange-base'
Conflicts:
	Telerik.JustMock/Core/TransparentProxy/ProxyInvocation.cs
2015-07-21 17:30:53 +03:00
Stefan Dragnev 2dc5753f4d Merge branch 'net4'
Conflicts:
	Telerik.JustMock.Tests/BehaviorFixture.cs
	Telerik.JustMock/Mock.Arrange.cs
2015-07-21 17:29:13 +03:00
Stefan Dragnev 74b59ea10b Merge branch 'pointers' 2015-07-21 17:26:49 +03:00
Stefan Dragnev fb5063a19f fix TransparentProxy calls to abstract methods and from within mock objects 2015-07-21 11:48:36 +03:00
Stefan Dragnev 385019c3c7 don't implicitly reimplement all interfaces 2015-07-21 10:53:50 +03:00
Stefan Dragnev 4aa4de02cb upgrade NUnit to 2.6.4 2015-07-15 16:31:33 +03:00
Stefan Dragnev d866d4015b fix Silverlight build 2015-07-15 15:50:37 +03:00
Stefan Dragnev 83581b2144 better debug view of interception 2015-07-15 15:35:53 +03:00
Stefan Dragnev 0f41b48a1a support for pointers 2015-07-14 09:20:24 +03:00