| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | namespace Python.Test | |
| 2 | 2 | { | |
| 3 | - //======================================================================== | ||
| 4 | - // Supports units tests for indexer access. | ||
| 5 | - //======================================================================== | ||
| 6 | - | ||
| 3 | + /// <summary> | ||
| 4 | + /// Supports units tests for indexer access. | ||
| 5 | + /// </summary> | ||
| 7 | 6 | public class PublicArrayTest | |
| 8 | 7 | { | |
| 9 | 8 | public int[] items; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Tests callbacks into python code. | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 5 | + /// <summary> | ||
| 6 | + /// Tests callbacks into python code. | ||
| 7 | + /// </summary> | ||
| 9 | 8 | public class CallbackTest | |
| 10 | 9 | { | |
| 11 | 10 | public string Call_simpleDefaultArg_WithNull(string moduleName) | |
@@ -27,11 +26,11 @@ public string Call_simpleDefaultArg_WithEmptyArgs(string moduleName) | |||
| 27 | 26 | } | |
| 28 | 27 | } | |
| 29 | 28 | ||
| 30 | - //========================================================================== | ||
| 31 | - // Tests calling from Python into C# and back into Python using a PyObject. | ||
| 32 | - // SelfCallbackTest should be inherited by a Python class. | ||
| 33 | - // Used in test_class.py / testCallback | ||
| 34 | - //========================================================================== | ||
| 29 | + /// <summary> | ||
| 30 | + /// Tests calling from Python into C# and back into Python using a PyObject. | ||
| 31 | + /// SelfCallbackTest should be inherited by a Python class. | ||
| 32 | + /// Used in test_class.py / testCallback | ||
| 33 | + /// </summary> | ||
| 35 | 34 | public class SelfCallbackTest | |
| 36 | 35 | { | |
| 37 | 36 | public void Callback(PyObject self) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Supports CLR class unit tests. | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 5 | + /// <summary> | ||
| 6 | + /// Supports CLR class unit tests. | ||
| 7 | + /// </summary> | ||
| 9 | 8 | public class ClassTest | |
| 10 | 9 | { | |
| 11 | 10 | public static ArrayList GetArrayList() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,10 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | 4 | namespace Python.Test | |
| 5 | 5 | { | |
| 6 | - //======================================================================== | ||
| 7 | - // These classes support the CLR constructor unit tests. | ||
| 8 | - //======================================================================== | ||
| 9 | - | ||
| 6 | + /// <summary> | ||
| 7 | + /// These classes support the CLR constructor unit tests. | ||
| 8 | + /// </summary> | ||
| 10 | 9 | public class EnumConstructorTest | |
| 11 | 10 | { | |
| 12 | 11 | public TypeCode value; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | namespace Python.Test | |
| 2 | 2 | { | |
| 3 | - //======================================================================== | ||
| 4 | - // Supports units tests for field access. | ||
| 5 | - //======================================================================== | ||
| 6 | - | ||
| 3 | + /// <summary> | ||
| 4 | + /// Supports units tests for field access. | ||
| 5 | + /// </summary> | ||
| 7 | 6 | public class ConversionTest | |
| 8 | 7 | { | |
| 9 | 8 | public ConversionTest() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | namespace Python.Test | |
| 2 | 2 | { | |
| 3 | - //======================================================================== | ||
| 4 | - // Supports CLR class unit tests. | ||
| 5 | - //======================================================================== | ||
| 6 | - | ||
| 3 | + /// <summary> | ||
| 4 | + /// Supports CLR class unit tests. | ||
| 5 | + /// </summary> | ||
| 7 | 6 | public delegate void PublicDelegate(); | |
| 8 | 7 | ||
| 9 | 8 | internal delegate void InternalDelegate(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,12 +2,13 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Supports units tests for exposing docstrings from C# to Python | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 9 | - // Classes with a constructor have their docstring set to the ctor signature. | ||
| 10 | - // Test if a class has an explicit doc string it gets set correctly. | ||
| 5 | + /// <summary> | ||
| 6 | + /// Supports units tests for exposing docstrings from C# to Python | ||
| 7 | + /// </summary> | ||
| 8 | + /// <remarks> | ||
| 9 | + /// Classes with a constructor have their docstring set to the ctor signature. | ||
| 10 | + /// Test if a class has an explicit doc string it gets set correctly. | ||
| 11 | + /// </remarks> | ||
| 11 | 12 | [DocString("DocWithCtorTest Class")] | |
| 12 | 13 | public class DocWithCtorTest | |
| 13 | 14 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Supports CLR enum unit tests. | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 5 | + /// <summary> | ||
| 6 | + /// Supports CLR enum unit tests. | ||
| 7 | + /// </summary> | ||
| 9 | 8 | public enum ByteEnum : byte | |
| 10 | 9 | { | |
| 11 | 10 | Zero, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Supports CLR event unit tests. | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 5 | + /// <summary> | ||
| 6 | + /// Supports CLR event unit tests. | ||
| 7 | + /// </summary> | ||
| 9 | 8 | public delegate void EventHandlerTest(object sender, EventArgsTest e); | |
| 10 | 9 | ||
| 11 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | 3 | namespace Python.Test | |
| 4 | 4 | { | |
| 5 | - //======================================================================== | ||
| 6 | - // Supports CLR Exception unit tests. | ||
| 7 | - //======================================================================== | ||
| 8 | - | ||
| 5 | + /// <summary> | ||
| 6 | + /// Supports CLR Exception unit tests. | ||
| 7 | + /// </summary> | ||
| 9 | 8 | public class ExceptionTest | |
| 10 | 9 | { | |
| 11 | 10 | public int ThrowProperty | |
| Back | FazBrowse Home | New Git URL |
0 commit comments