Skip to content

Commit

Permalink
fix line endings problem (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
trudeaua-vividream-software committed Jun 7, 2023
1 parent fb62d36 commit 1cba302
Show file tree
Hide file tree
Showing 31 changed files with 807 additions and 807 deletions.
492 changes: 246 additions & 246 deletions dist/steps/run_tests.sh

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/steps/set_gitcredential.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if ($null -eq ${env:GIT_PRIVATE_TOKEN})
if ($null -eq ${env:GIT_PRIVATE_TOKEN})
{
Write-Output "GIT_PRIVATE_TOKEN unset skipping"
}
Expand Down
2 changes: 1 addition & 1 deletion dist/steps/set_gitcredential.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env bash

if [ -z "${GIT_PRIVATE_TOKEN}" ]
then
Expand Down
2 changes: 1 addition & 1 deletion dist/test-standalone-scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
#
# Note: Non default ignore file, as this only tests Builder script.
#

Expand Down
2 changes: 1 addition & 1 deletion src/model/licensing-server-setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as core from '@actions/core';
import * as core from '@actions/core';
import fs from 'fs';

class LicensingServerSetup {
Expand Down
2 changes: 1 addition & 1 deletion src/model/results-meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components } from '@octokit/openapi-types';
import { components } from '@octokit/openapi-types';

export function timeHelper(seconds: number): string {
return `${seconds.toFixed(3)}s`;
Expand Down
2 changes: 1 addition & 1 deletion src/model/results-report.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface CommonAttributes {
interface CommonAttributes {
id: string;
result: string;
asserts: string;
Expand Down

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
@@ -1,6 +1,6 @@
{
"name": "fake.notarealpackage.Editor",
"references": [
"fake.notarealpackage.Runtime"
]
}
{
"name": "fake.notarealpackage.Editor",
"references": [
"fake.notarealpackage.Runtime"
]
}

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
@@ -1,18 +1,18 @@
using System;

public class BasicCounter
{
public const int MaxCount = 10;

public BasicCounter(int count = 0)
{
Count = count;
}

public void Increment()
{
Count = Math.Min(MaxCount, Count + 1);
}

public int Count { get; private set; }
}
using System;

public class BasicCounter
{
public const int MaxCount = 10;

public BasicCounter(int count = 0)
{
Count = count;
}

public void Increment()
{
Count = Math.Min(MaxCount, Count + 1);
}

public int Count { get; private set; }
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
using UnityEngine;

public class SampleComponent : MonoBehaviour
{
public BasicCounter Counter;

void Start()
{
Counter = new BasicCounter(5);
}

// Update is called once per frame
void Update()
{
Counter.Increment();
}
}
using UnityEngine;

public class SampleComponent : MonoBehaviour
{
public BasicCounter Counter;

void Start()
{
Counter = new BasicCounter(5);
}

// Update is called once per frame
void Update()
{
Counter.Increment();
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
using UnityEngine;

public class TimerComponent : MonoBehaviour
{
public BasicCounter Counter = new BasicCounter();
public float Timer = 1f;

void Update()
{
Timer -= Time.deltaTime;

if (Timer > 0)
return;

Counter.Increment();
Timer = 1f;
}
}
using UnityEngine;

public class TimerComponent : MonoBehaviour
{
public BasicCounter Counter = new BasicCounter();
public float Timer = 1f;

void Update()
{
Timer -= Time.deltaTime;

if (Timer > 0)
return;

Counter.Increment();
Timer = 1f;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "fake.notarealpackage.Runtime"
}
{
"name": "fake.notarealpackage.Runtime"
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace Tests
{
public class SampleEditModeTest
{
[Test]
public void TestIncrement()
{
// Given
var counter = new BasicCounter(0);

// When
counter.Increment();

// Then
Assert.AreEqual(1, counter.Count);
}

[Test]
public void TestMaxCount()
{
// Given
var counter = new BasicCounter(BasicCounter.MaxCount);

// When
counter.Increment();

// Then
Assert.AreEqual(BasicCounter.MaxCount, counter.Count);
}

}
}
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace Tests
{
public class SampleEditModeTest
{
[Test]
public void TestIncrement()
{
// Given
var counter = new BasicCounter(0);

// When
counter.Increment();

// Then
Assert.AreEqual(1, counter.Count);
}

[Test]
public void TestMaxCount()
{
// Given
var counter = new BasicCounter(BasicCounter.MaxCount);

// When
counter.Increment();

// Then
Assert.AreEqual(BasicCounter.MaxCount, counter.Count);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "fake.notarealpackage.EditorTests",
"references": [
"fake.notarealpackage.Runtime",
"fake.notarealpackage.Editor"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": []
{
"name": "fake.notarealpackage.EditorTests",
"references": [
"fake.notarealpackage.Runtime",
"fake.notarealpackage.Editor"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": []
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
using System.Collections;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace Tests
{
public class SampleComponentTest
{
private GameObject target;
private SampleComponent component;

[SetUp]
public void Setup()
{
target = GameObject.Instantiate(new GameObject());
component = target.AddComponent<SampleComponent>();
}

[UnityTest]
public IEnumerator TestIncrementOnUpdateAfterNextFrame()
{
// Save the current value, since it was updated after component Start() method called
var count = component.Counter.Count;

// Skip frame and assert the new value
yield return null;
Assert.AreEqual(count + 1, component.Counter.Count);
}
}
}
using System.Collections;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;

namespace Tests
{
public class SampleComponentTest
{
private GameObject target;
private SampleComponent component;

[SetUp]
public void Setup()
{
target = GameObject.Instantiate(new GameObject());
component = target.AddComponent<SampleComponent>();
}

[UnityTest]
public IEnumerator TestIncrementOnUpdateAfterNextFrame()
{
// Save the current value, since it was updated after component Start() method called
var count = component.Counter.Count;

// Skip frame and assert the new value
yield return null;
Assert.AreEqual(count + 1, component.Counter.Count);
}
}
}
Loading

0 comments on commit 1cba302

Please sign in to comment.