Skip to content

Commit

Permalink
Feat: Code Assembly Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
fkdl0048 committed Oct 31, 2023
1 parent b9aad3a commit 72c9265
Show file tree
Hide file tree
Showing 15 changed files with 191 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .idea/.idea.GameOver/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 38 additions & 27 deletions .idea/.idea.GameOver/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/Runtime/UI.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Assets/Scripts/Runtime/UI/TriviaGamePresenter.cs
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++;
}
}
}
3 changes: 3 additions & 0 deletions Assets/Scripts/Runtime/UI/TriviaGamePresenter.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Scripts/Scripts.asmdef
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
}
7 changes: 7 additions & 0 deletions Assets/Scripts/Scripts.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Assets/Scripts/Tests/Editor/GameOver.Editor.Tests.asmdef
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
}
9 changes: 0 additions & 9 deletions Assets/Scripts/Tests/Editor/Tests.asmdef

This file was deleted.

8 changes: 8 additions & 0 deletions Assets/Scripts/Tests/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Assets/Scripts/Tests/Runtime/FirstRunTimeTest.cs
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);
}

}
11 changes: 11 additions & 0 deletions Assets/Scripts/Tests/Runtime/FirstRunTimeTest.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Scripts/Tests/Runtime/GameOver.RunTime.Tests.asmdef
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.

0 comments on commit 72c9265

Please sign in to comment.