Search found 5 matches

by Vincent Abric
Fri Jun 13, 2014 12:36 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: EasySave and Unit Tests
Replies: 8
Views: 14706

Re: EasySave and Unit Tests

Hi, I found what was causing the problem : Easy Save is not properly initialized when its functions are called from a unit test (ES2Init is not created and its Awake() function is never called). The workaround I found is to add a the content of the ES2Init.Awake() function in the constructor of the ...
by Vincent Abric
Tue Jun 03, 2014 1:37 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: EasySave and Unit Tests
Replies: 8
Views: 14706

Re: EasySave and Unit Tests

Thanks a lot for the help! I'll let you know if this solve the problem.
by Vincent Abric
Tue Jun 03, 2014 1:11 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: EasySave and Unit Tests
Replies: 8
Views: 14706

Re: EasySave and Unit Tests

Here's the error I'm getting when running the utest : --- System.NullReferenceException : Object reference not set to an instance of an object ---EXCEPTION--- at ES2TypeManager.GetES2Type (System.Type type) [0x00000] in <filename unknown>:0 at ES2Writer.Write[Int32] (Int32 param, System.String tag) ...
by Vincent Abric
Tue Jun 03, 2014 12:28 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: EasySave and Unit Tests
Replies: 8
Views: 14706

Re: EasySave and Unit Tests

Hi, I'm already using the v2.46. Here's a very simple code that doesn't work. Simply create a .cs in an editor folder then run it using the Unit Test Runner. This code works well outside the utests. using NUnit.Framework; internal class Saving_utest { [Test] public void Save() { ES2.Save(242, "...
by Vincent Abric
Tue Jun 03, 2014 11:50 am
Forum: (Legacy) Easy Save 2 General Discussion
Topic: EasySave and Unit Tests
Replies: 8
Views: 14706

EasySave and Unit Tests

Hi,

I have developped some Unit Tests for my EasySave implementation, using the unity test tools, but I have some trouble since the 2.43 (2.42 was working well). Each time I call a function from ES2 in a UTest (ES2.Save() for example), a NullReferenceException is thrown.

Thanks