This commit is contained in:
parent
429e717a6e
commit
f90af7320f
@ -20,7 +20,7 @@ jobs:
|
|||||||
# Add files into /Tests/bin/Debug/net7.0 and create thisfileexist.txt
|
# Add files into /Tests/bin/Debug/net7.0 and create thisfileexist.txt
|
||||||
run: |
|
run: |
|
||||||
echo "incredible file" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/thisfileexist.txt
|
echo "incredible file" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/thisfileexist.txt
|
||||||
echo -n "Bonjour,\nCeci est un message de test.\nJ'espere que vous allez reussir vos exams :D." > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/MyReplaceTestFile.txt
|
echo -n "Cestvraimentmagnifique" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/MyReplaceTestFile.txt
|
||||||
echo "✅ Finished"
|
echo "✅ Finished"
|
||||||
- name: "✅ Test"
|
- name: "✅ Test"
|
||||||
run: dotnet test
|
run: dotnet test
|
@ -17,6 +17,6 @@ public class StreamTest
|
|||||||
public void MyReplaceTest(string filePath, char toReplace, char replace)
|
public void MyReplaceTest(string filePath, char toReplace, char replace)
|
||||||
{
|
{
|
||||||
global::Stream.Stream.MyReplace(filePath, toReplace, replace);
|
global::Stream.Stream.MyReplace(filePath, toReplace, replace);
|
||||||
Assert.Equal("Bonjour,\nCfci fst un mfssagf df tfst.\nJ'fspfrf quf vous allfz rfussir vos fxams :D.\n", File.ReadAllText(filePath));
|
Assert.Equal("Cfstvraimfntmagnifiquf\n", File.ReadAllText(filePath));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user