-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Runtime.UI | ||
{ | ||
public class TriviaGamePresenter | ||
{ | ||
public int Score { get; private set; } | ||
|
||
public TriviaGamePresenter() | ||
{ | ||
Score = 0; | ||
} | ||
|
||
public void ReceiveAnswer(string answer) | ||
{ | ||
Score++; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "Scripts", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:9e24947de15b9834991c9d8411ea37cf", | ||
"GUID:75469ad4d38634e559750d17036d5f7c", | ||
"GUID:6055be8ebefd69e48b49212b09b47b2f", | ||
"GUID:84651a3751eca9349aac36a66bba901b", | ||
"GUID:eec0964c48f6f4e40bc3ec2257ccf8c5" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "GameOver.Editor.Tests", | ||
"rootNamespace": "", | ||
"references": [ | ||
"UnityEngine.TestRunner", | ||
"UnityEditor.TestRunner" | ||
], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": true, | ||
"precompiledReferences": [ | ||
"nunit.framework.dll" | ||
], | ||
"autoReferenced": false, | ||
"defineConstraints": [ | ||
"UNITY_INCLUDE_TESTS" | ||
], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using NUnit.Framework; | ||
using Runtime.UI; | ||
using UnityEngine; | ||
using UnityEngine.TestTools; | ||
|
||
[TestFixture] | ||
public class FirstRunTimeTest | ||
{ | ||
[Test] | ||
public void DummyTest() | ||
{ | ||
Assert.IsTrue(true); | ||
} | ||
|
||
[Test] | ||
public void WhenRightAnswerScoreIncreases() | ||
{ | ||
// Given | ||
TriviaGamePresenter presenter = new TriviaGamePresenter(); | ||
var initialScore = presenter.Score; | ||
|
||
// When | ||
presenter.ReceiveAnswer("ok"); | ||
|
||
// Then | ||
Assert.AreEqual(initialScore + 1, presenter.Score); | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "GameOver.RunTime.Tests", | ||
"rootNamespace": "", | ||
"references": [ | ||
"UnityEngine.TestRunner", | ||
"UnityEditor.TestRunner", | ||
"Scripts" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": true, | ||
"precompiledReferences": [ | ||
"nunit.framework.dll" | ||
], | ||
"autoReferenced": false, | ||
"defineConstraints": [ | ||
"UNITY_INCLUDE_TESTS" | ||
], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.